From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: :noweb no-export and syntax highlighting upon export to html Date: Thu, 05 Nov 2015 14:45:34 +0000 Message-ID: <87k2pwv71t.fsf@gmail.com> References: <87si4kk75o.fsf@snow.nl> 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]:33913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuLnJ-00053i-TP for emacs-orgmode@gnu.org; Thu, 05 Nov 2015 09:45:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZuLnF-0005Bj-FN for emacs-orgmode@gnu.org; Thu, 05 Nov 2015 09:45:41 -0500 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:34553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuLnF-0005BP-0M for emacs-orgmode@gnu.org; Thu, 05 Nov 2015 09:45:37 -0500 Received: by wmnn186 with SMTP id n186so16218718wmn.1 for ; Thu, 05 Nov 2015 06:45:36 -0800 (PST) In-Reply-To: <87si4kk75o.fsf@snow.nl> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Joost Helberg , emacs-orgmode@gnu.org Hi Joost, Org=E2=80=99s html export relies on the syntax of the source block being va= lid in the block=E2=80=99s language, for the corresponding emacs major mode to highlight it properly. In general, I wouldn=E2=80=99t rely on it behaving properly in the presence of unexpanded noweb references. That said... 2015ko azaroak 5an, Joost Helberg-ek idatzi zuen: >=20 > ls, >=20 > In the org-code below syntax highlighting in both code-blocks in the > emacs-buffer is fine, but the html-export only works nice in case of > using :noweb yes, the no-export option screws up syntax highlighting in > the html-output (two screenshots included). >=20 > I understood that htmlize is used for html-export and that it honours > the faces in the emacs-buffer. It seems as if htmlize doesn't do this > after encountering the '>>' token. Your example works fine for me on latest org master. Can you send your org version? (M-x org-version) What happens if you insert the code for t1 into an sh-mode buffer: is it highlighted as expected? --=20 Aaron Ecay