From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: Re: Inline code block syntax highlighting absence Date: Wed, 24 Oct 2018 11:47:53 +0800 Message-ID: <874ldct386.fsf@gmail.com> References: <87k1m8q2sb.fsf@portable.galex-713.eu> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFA9H-0005PB-1E for emacs-orgmode@gnu.org; Tue, 23 Oct 2018 23:47:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFA9D-0007bs-QI for emacs-orgmode@gnu.org; Tue, 23 Oct 2018 23:47:58 -0400 Received: from [61.175.244.13] (port=13466 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFA9D-0007ZO-AB for emacs-orgmode@gnu.org; Tue, 23 Oct 2018 23:47:55 -0400 In-reply-to: <87k1m8q2sb.fsf@portable.galex-713.eu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Garreau, Alexandre" Cc: org-mode Garreau, Alexandre writes: > Why is there no syntax highlighting for *inline* source/code blocks? > > For instance, if I type the following: > > #+BEGIN_SRC org > src_emacs-lisp{(foo bar (quux))} > #+END_SRC > > The underscore is not displayed, =E2=80=9Cemacs=E2=80=9D is displayed in = face > ~org-latex-and-related~ *and* in subscript display (smaller and > negatively raised), and all the rest in default face, with no syntax > highlighting, even inside the braces (that I would expect as it is done > inside non-inline blocks). I used to asked similar question, and answered my own question with a font-= lock solution. This link might be helpful. https://stackoverflow.com/questi= ons/20309842/how-to-syntax-highlight-for-org-mode-inline-source-code-src-la= ng --=20 [ stardiviner ] I try to make every word tell the meaning what I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 =20=20=20=20=20=20