emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] controlling how htmlize fontifies code


From: Rasmus
Subject: Re: [O] controlling how htmlize fontifies code
Date: Tue, 04 Aug 2015 17:21:45 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Hi,

Nicolas Goaziou <address@hidden> writes:

> Not really, although I would write it like the following instead:
>
>   (let ((output-type org-html-htmlize-output-type)
>         (font-prefix org-html-htmlize-font-prefix))
>     (with-temp-buffer
>       ...
>       ;; Htmlize region.
>       (let ((org-html-htmlize-output-type output-type)
>             (org-html-htmlize-font-prefix font-prefix))
>         (org-html-htmlize-region-for-paste
>          (point-min) (point-max)))))

That might be ascetically nicer.

>> Of course, in org-html--build-head the mysterious :html-htmlized-css-url
>> is required so you won't actually get any default colors, which is a bit
>> boring in my opinion.  I don't know if I'm misunderstanding
>> :html-htmlized-css-url, a bug or something supposed to be set via a
>> publish project.
>
> I think there's a bug. `org-org-htmlized-css-url' is defined in
> "ox-org.el", but not attached to any info property. So, at the
> moment, :html-htmlized-css-url is bogus.

Do we have a function that can generate a candidate css file for
org-org-htmlized-css-url or :html-htmlize-css-url?

Rasmus

-- 
Lasciate ogni speranza o voi che entrate: siete nella mani di'machellaio




reply via email to

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