[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 17:03:16 +0100 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) |
On Tuesday, 4 Aug 2015 at 17:09, Nicolas Goaziou wrote:
[...]
> 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)))))
Thanks Nicolas. This works! (diffs attached) At least with the output
type set as a local variable but not with #+bind which is perfectly fine
as local variable use is what I would prefer.
And thank you to Rasmus as well as I would imagine the suggested code
changes would work as well.
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3beta-1315-ga3b2b7
t.patch
Description: Text Data
- Re: [O] controlling how htmlize fontifies code, (continued)
- Re: [O] controlling how htmlize fontifies code, Eric S Fraga, 2015/08/03
- Re: [O] controlling how htmlize fontifies code, Rick Frankel, 2015/08/03
- Re: [O] controlling how htmlize fontifies code, Eric S Fraga, 2015/08/04
- Re: [O] controlling how htmlize fontifies code, Eric S Fraga, 2015/08/04
- Re: [O] controlling how htmlize fontifies code, Rasmus, 2015/08/04
- Re: [O] controlling how htmlize fontifies code, Nicolas Goaziou, 2015/08/04
- Re: [O] controlling how htmlize fontifies code, Rasmus, 2015/08/04
- Re: [O] controlling how htmlize fontifies code, Nicolas Goaziou, 2015/08/04
- Re: [O] controlling how htmlize fontifies code, Rasmus, 2015/08/04
- Re: [O] controlling how htmlize fontifies code, Nicolas Goaziou, 2015/08/04
- Re: [O] controlling how htmlize fontifies code,
Eric S Fraga <=