From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: controlling how htmlize fontifies code Date: Tue, 04 Aug 2015 17:09:40 +0200 Message-ID: <87h9ofgkej.fsf@nicolasgoaziou.fr> References: <874mkihwl2.fsf@ucl.ac.uk> <20150802131919.GA98482@eyeBook.home> <87a8u8jxb0.fsf@ucl.ac.uk> <20150803210802.GA2327@eyeBook.home> <87a8u7faou.fsf@ucl.ac.uk> <87wpxbrw5v.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMdp4-0002V0-Sl for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 11:08:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMdp2-00023R-9z for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 11:08:10 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:45764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMdp2-00023G-2x for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 11:08:08 -0400 In-Reply-To: <87wpxbrw5v.fsf@gmx.us> (rasmus@gmx.us's message of "Tue, 04 Aug 2015 16:00:12 +0200") 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: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus writes: > Here's a simple fix, Thank you. > though I suspect Nicolas will have a more through solution up his > sleeve. 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))))) > Of course, in org-html--build-head the mysterious :html-htmlized-css-url > is required so you won't actually get any default colors, which is a bit > boring in my opinion. I don't know if I'm misunderstanding > :html-htmlized-css-url, a bug or something supposed to be set via a > publish project. I think there's a bug. `org-org-htmlized-css-url' is defined in "ox-org.el", but not attached to any info property. So, at the moment, :html-htmlized-css-url is bogus. Regards, -- Nicolas Goaziou