From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: controlling how htmlize fontifies code Date: Sun, 2 Aug 2015 10:24:25 +0100 Message-ID: <874mkihwl2.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLpVX-0005Go-9c for emacs-orgmode@gnu.org; Sun, 02 Aug 2015 05:24:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLpVT-0005CR-8d for emacs-orgmode@gnu.org; Sun, 02 Aug 2015 05:24:39 -0400 Received: from mail-am1on0136.outbound.protection.outlook.com ([157.56.112.136]:31493 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLpVT-0005An-15 for emacs-orgmode@gnu.org; Sun, 02 Aug 2015 05:24:35 -0400 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 Hello all, I have to prepare a whole new set of lectures for a new course and I thought I would play around with =ox-reveal= as an HTML export target may actually be more appropriate for this course than my usual PDF target. And one of the best features of org is that most of the effort is the same regardless of target so I won't be wasting much time playing! :-) In playing around with reveal, I realised that exporting code uses the =ox-html= exporter (obvious, in hindsight). This exporter uses emacs's own fontifying engine to colour code for export. My problem is that I use a dark background theme for emacs but want presentations to be based on a light background. The code colouring, as a result, is completely wrong. Now, I can simply start up emacs with a light background, export my slides and everything is fine. However, it would be nice to not have to start up a new emacs just for this. Is there an easy way to pretend, for export to HTML, that emacs is using a light background? Maybe a way to advise the exporter? Thanks, eric PS - ideally, code export to HTML would make use of CSS instead of hard-coding in the colours but that's a discussion for another day... -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3beta-1303-g3f0398