[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] controlling how htmlize fontifies code

From: Eric S Fraga
Subject: Re: [O] controlling how htmlize fontifies code
Date: Tue, 4 Aug 2015 14:24:49 +0100
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

On Monday,  3 Aug 2015 at 17:08, Rick Frankel wrote:


> Both should work. Are you sure you have `org-export-allow-bind-keywords' set?
> Why wouldn't you expect local variables to work?

Okay, I have tracked the problem down.  Took some effort and boy did
this test my not very extensive emacs lisp knowledge!  I do need to
learn how to use the Emacs debugger.  Task for a rainy day...

In any case, the problem is that the fontification happens
(org-html-htmlize-output-type not nil) in org-html-fontify-code using
with-temp-buffer which resets org-html-htmlize-output-type back to
inline-css or whatever the global setting for that variable happens to

So, basically, one can have code fontified with inline-css or not at all
unless the output type is set to css globally.

I hope this makes sense.

Trying to fix this is definitely beyond my ability unfortunately.  I may
need to see how onerous it is to set the output type to css globally.

Thanks again,

: Eric S Fraga (0xFFFCF67D), Emacs, Org release_8.3beta-1315-ga3b2b7

reply via email to

[Prev in Thread] Current Thread [Next in Thread]