From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Question: how to disable htmlize during exporting? Date: Tue, 25 Mar 2014 09:25:47 +0100 Message-ID: <87lhvyelbo.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSMgP-000338-Sx for emacs-orgmode@gnu.org; Tue, 25 Mar 2014 04:26:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSMgJ-0007mW-SO for emacs-orgmode@gnu.org; Tue, 25 Mar 2014 04:26:05 -0400 Received: from rs249.mailgun.us ([209.61.151.249]:40224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSMgJ-0007mM-KV for emacs-orgmode@gnu.org; Tue, 25 Mar 2014 04:25:59 -0400 In-Reply-To: (Kelvin Hu's message of "Tue, 25 Mar 2014 11:33:44 +0800") 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: Kelvin Hu Cc: emacs-orgmode@gnu.org Hi Kelvin, Kelvin Hu writes: > Org is awesome and now I use it as my blogging tool, everything is > perfect except the source code highlighting. Org uses htmlize.el to > highlight source code, it's fine, but when I use another theme or on a > different machine, the generated html(contains source code block) will > change due to Emacs theme change. As I use git to manage my generated > html files, so when publishing after a theme change, those html files > contain source code will change and thus I need to *git commit* a lot > of files without actual useful content change! > So now I want to use google prettify.js to highlight my source code, > but I cannot disable htmlize.el during exporting, I googled and > someone said removing htmlize.el will achieve this, but I don't think > it is a good idea. I'd try to set `org-html-htmlize-output-type' to nil but I didn't test. If it does not work, this is a bug. -- Bastien