[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: |
Sun, 02 Aug 2015 14:17:29 +0200 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) |
Eric S Fraga <address@hidden> writes:
> Now, I can simply start up emacs with a light background, export my
> slides and everything is fine. However, it would be nice to not have to
> start up a new emacs just for this. Is there an easy way to pretend,
> for export to HTML, that emacs is using a light background? Maybe a way
> to advise the exporter?
Check the functions disable-theme and load-theme in Emacs; maybe map
custom-enabled-themes over disable-theme. Check the hooks
org-export-before-processing-hook and org-export-before-parsing-hook in ox
to automate it.
Some people on SX seem to have used some JS coloring libraries.
> PS - ideally, code export to HTML would make use of CSS instead of
> hard-coding in the colours but that's a discussion for another
> day...
This would also solve the problem when exporting in batch. Patches
welcome.
Rasmus
--
I feel emotional landscapes they puzzle me
- [O] controlling how htmlize fontifies code, Eric S Fraga, 2015/08/02
- Re: [O] controlling how htmlize fontifies code,
Rasmus <=
- Re: [O] controlling how htmlize fontifies code, Rick Frankel, 2015/08/02
- Re: [O] controlling how htmlize fontifies code, Kaushal, 2015/08/02
- 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