From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: controlling how htmlize fontifies code Date: Tue, 04 Aug 2015 17:21:45 +0200 Message-ID: <87y4hrqdti.fsf@gmx.us> 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> <87h9ofgkej.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMe2i-0002WI-26 for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 11:22:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMe2c-0004jd-Vd for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 11:22:16 -0400 Received: from plane.gmane.org ([80.91.229.3]:52667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMe2c-0004j4-Or for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 11:22:10 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZMe2b-0007qG-9T for emacs-orgmode@gnu.org; Tue, 04 Aug 2015 17:22:09 +0200 Received: from ip5b4025d5.dynamic.kabel-deutschland.de ([91.64.37.213]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Aug 2015 17:22:09 +0200 Received: from rasmus by ip5b4025d5.dynamic.kabel-deutschland.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Aug 2015 17:22:09 +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: emacs-orgmode@gnu.org Hi, Nicolas Goaziou writes: > 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))))) That might be ascetically nicer. >> 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. Do we have a function that can generate a candidate css file for org-org-htmlized-css-url or :html-htmlize-css-url? Rasmus -- Lasciate ogni speranza o voi che entrate: siete nella mani di'machellaio