From mboxrd@z Thu Jan 1 00:00:00 1970 From: Puneeth Chaganti Subject: Re: HTML Syntax Highlighting Questions Date: Mon, 30 May 2011 10:17:38 +0530 Message-ID: References: <81zkm5otvg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQuOW-0000sq-6q for emacs-orgmode@gnu.org; Mon, 30 May 2011 00:48:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQuOU-0001bP-Tp for emacs-orgmode@gnu.org; Mon, 30 May 2011 00:48:00 -0400 Received: from mail-gx0-f169.google.com ([209.85.161.169]:53829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQuOU-0001bK-Pa for emacs-orgmode@gnu.org; Mon, 30 May 2011 00:47:58 -0400 Received: by gxk23 with SMTP id 23so1785794gxk.0 for ; Sun, 29 May 2011 21:47:58 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: avdi@avdi.org Cc: emacs-orgmode , Jambunathan K On Mon, May 30, 2011 at 7:55 AM, Avdi Grimm wrote: > On Sun, May 29, 2011 at 9:32 PM, Jambunathan K 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