From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Change color in fontified html export for strings Date: Tue, 14 Sep 2010 02:36:45 +0200 Message-ID: <87wrqp9n4y.fsf@gmx.de> References: <4C8E21C2.80501@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=57892 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OvJW5-00081u-8q for emacs-orgmode@gnu.org; Mon, 13 Sep 2010 20:36:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OvJW4-0005E2-8u for emacs-orgmode@gnu.org; Mon, 13 Sep 2010 20:36:57 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:58211 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OvJW3-0005DY-OZ for emacs-orgmode@gnu.org; Mon, 13 Sep 2010 20:36:56 -0400 In-Reply-To: <4C8E21C2.80501@gmail.com> (Rainer M. Krug's message of "Mon, 13 Sep 2010 15:06:10 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rainer M Krug Cc: emacs-orgmode Rainer M Krug writes: > Hi > > when exporting code blocks to html, strings are exported as yellow > (#ffff00), which is really difficult to read. Is there a possibility to > customize the colors (specifically the one used for strings) used for > the fontification when exporting to html? > > Thanks, > > Rainer Change the CSS styles for strings using a stylesheet. This is the htmlize-related section of my CSS stylesheet: pre.src .comment { color: #777777; font-style: italic; } pre.src .comment-delimiter { color: #777777; font-style: italic; } .constant { color: #ff4500; } .default { color: #000000; } .builtin { color: #0000ff; } .function-name { color:#0000ff; } .html-tag { color: #0000ff; } .keyword { color: #a52a2a; font-weight: bold; } .string { color: #006400; } .type { font-weight:bold; color:#238b8b; } .preprocessor { color:#0000FF; } .variable-name { color: #4d4d4d; font-weight:bold; } .org-meta-line { color: #990000; } .css-selector { color: #0000ff; font-weight:bold; } .css-property { color: #000000; font-weight:bold; } .makefile-targets { font-weight:bold; color: #0000ff; } pre.src .doc { color:#777777; } /* ENDE htmlize.el */ Sebastian