From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Inline code block syntax highlighting absence Date: Wed, 24 Oct 2018 09:39:57 +0200 Message-ID: <87d0rzyer6.fsf@nicolasgoaziou.fr> References: <87k1m8q2sb.fsf@portable.galex-713.eu> <874ldct386.fsf@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]:40667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFE0Y-0004fz-9x for emacs-orgmode@gnu.org; Wed, 24 Oct 2018 03:55:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFDlp-0001uW-Tv for emacs-orgmode@gnu.org; Wed, 24 Oct 2018 03:40:05 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:48261) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gFDlp-0001sV-K2 for emacs-orgmode@gnu.org; Wed, 24 Oct 2018 03:40:01 -0400 In-Reply-To: <874ldct386.fsf@gmail.com> (stardiviner's message of "Wed, 24 Oct 2018 11:47:53 +0800") 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: stardiviner Cc: org-mode , "Garreau, Alexandre" Hello, stardiviner writes: > 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/questions/20309842/how-to-syntax-highlight-for-= org-mode-inline-source-code-src-lang Would you want to provide a patch for that? Thank you. Regards, --=20 Nicolas Goaziou