[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] HTML Syntax Highlighting Questions
From: |
Puneeth Chaganti |
Subject: |
Re: [O] HTML Syntax Highlighting Questions |
Date: |
Mon, 30 May 2011 10:17:38 +0530 |
On Mon, May 30, 2011 at 7:55 AM, Avdi Grimm <address@hidden> wrote:
> On Sun, May 29, 2011 at 9:32 PM, Jambunathan K <address@hidden> wrote:
>> Let me guess - It is either htmlize not being in your load path during
>> the batch run or font lock being not being explicity turned on during
>> the batch run or font-locking simply not making sense during batch
>> mode. Ultimately htmlize or for that matter htmlfontify seem to depend
>> on the fontification done by the fontification engine.
>
> Hm. Bonus question, then: source code highlighting via Pygments works
> great with LaTeX export and the "minted" package. How hard would it be
> to use Pygments instead of htmlize/htmlfontify for HTML-exported
> syntax highlighting?
I've some hackish code, which I use to publish my blog. It
essentially, looks at all the code blocks in the html output and
replaces them with Pygments output for them. The code is here [1]
HTH,
Puneeth
[1] https://github.com/punchagan/org-hyde/blob/master/org-hyde.el#L109