From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joost Helberg Subject: Re: :noweb no-export and syntax highlighting upon export to html Date: Sun, 08 Nov 2015 11:39:54 +0100 Message-ID: <871tc0kc5h.fsf@snow.nl> References: <87si4kk75o.fsf@snow.nl> <87k2pwv71t.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]:42030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvNOQ-0004Z3-VF for emacs-orgmode@gnu.org; Sun, 08 Nov 2015 05:40:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZvNOL-0003wR-UU for emacs-orgmode@gnu.org; Sun, 08 Nov 2015 05:40:14 -0500 Received: from mx.snow.nl ([213.154.248.146]:52710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZvNOL-0003vz-Kx for emacs-orgmode@gnu.org; Sun, 08 Nov 2015 05:40:09 -0500 In-reply-to: <87k2pwv71t.fsf@gmail.com> 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: Aaron Ecay Cc: emacs-orgmode@gnu.org Dear Aaron, I was running close to the development version, but not close enough. It's solved now in the current version of org-mode. At first I accepted this odd behaviour, but then I realized htmlize is supposed to give you what you see on screen, hence this was a bug. regards, Joost >>>>> "Aaron" =3D=3D Aaron Ecay writes: > From: Aaron Ecay > To: Joost Helberg , emacs-orgmode@gnu.org > Subject: Re: [O] :noweb no-export and syntax highlighting upon export > Date: 2015-11-05T15:45:34+0100 > Hi Joost, > Org=E2=80=99s html export relies on the syntax of the source block bei= ng valid > in the block=E2=80=99s language, for the corresponding emacs major mod= e to > highlight it properly. In general, I wouldn=E2=80=99t rely on it beha= ving > 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 you= r > org version? (M-x org-version) What happens if you insert the code f= or > t1 into an sh-mode buffer: is it highlighted as expected? > --=20 > Aaron Ecay --=20 Snow B.V.