From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Garreau\, Alexandre" Subject: Re: Inline code block syntax highlighting absence Date: Thu, 25 Oct 2018 09:40:42 +0200 Message-ID: <87ftwu79tx.fsf@portable.galex-713.eu> References: <87k1m8q2sb.fsf@portable.galex-713.eu> <874ldct386.fsf@gmail.com> <87d0rzyer6.fsf@nicolasgoaziou.fr> <877ei6r7fh.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]:48727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFaGC-0006dI-Gj for emacs-orgmode@gnu.org; Thu, 25 Oct 2018 03:40:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFaG9-0003gC-87 for emacs-orgmode@gnu.org; Thu, 25 Oct 2018 03:40:51 -0400 Received: from portable.galex-713.eu ([2a00:5884:8305::1]:46668) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gFaG8-0003eG-SO for emacs-orgmode@gnu.org; Thu, 25 Oct 2018 03:40:49 -0400 In-Reply-To: <877ei6r7fh.fsf@gmail.com> (stardiviner's message of "Thu, 25 Oct 2018 12:12:18 +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 , Nicolas Goaziou On 2018-10-25 at 12:12, stardiviner wrote: > Nicolas Goaziou writes: >> Would you want to provide a patch for that? >> >> Thank you. >> >> Regards, > > I did a search of "font-lock-add-keywords", "begin_src", "src_" etc in > Org Mode source code, but have not found exact place where fontify > function are. So I don't know where to modify the source code. Now I put > my current config here: I found `org-src-font-lock-fontify-block' in the middle of =E2=80=9Corg-src= .el=E2=80=9D (is that the place you wanted?), which I found in =E2=80=9Corg.el=E2=80=9D = which I found after searching with =E2=80=9CC-h f=E2=80=9D a function containing =E2=80= =9Corg-[POINT]font=E2=80=9D and TAB, so I quickly searched for =E2=80=9Cfont-lock=E2=80=9D, =E2=80=9Cbegin_= =E2=80=9D, and =E2=80=9Csrc=E2=80=9D, alone. I have the impression org doesn=E2=80=99t use `add-keywords' at all and jus= t use setq in org-set-font-lock-defaults so to bind keywords list.