From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: html export with htmlized code blocks [SOLVED, but...] Date: Mon, 25 May 2009 22:03:37 +0200 Message-ID: <87prdxlzl2.fsf@kassiopeya.MSHEIMNETZ> References: <20090519181956.GD6662@mindcrime> <87skj0c3jq.fsf@stats.ox.ac.uk> <20090519200751.GF6662@mindcrime> <20090525180436.GB6128@mindcrime> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M8gL2-0004c7-H9 for emacs-orgmode@gnu.org; Mon, 25 May 2009 16:00:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8gKx-0004bN-Vt for emacs-orgmode@gnu.org; Mon, 25 May 2009 16:00:00 -0400 Received: from [199.232.76.173] (port=52327 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8gKx-0004bK-FU for emacs-orgmode@gnu.org; Mon, 25 May 2009 15:59:55 -0400 Received: from mail.gmx.net ([213.165.64.20]:60376) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1M8gKw-0006ux-Qr for emacs-orgmode@gnu.org; Mon, 25 May 2009 15:59:55 -0400 In-Reply-To: <20090525180436.GB6128@mindcrime> (Dirk-Jan C. Binnema's message of "Mon, 25 May 2009 21:04:36 +0300") 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: djcb@djcbsoftware.nl Cc: "emacs-orgmode@gnu.org" "Dirk-Jan C. Binnema" writes: > So, either I'd like the
 to have the styles inline (like the rest
> of the code, I think this is the nicer solution) *or* make the 'pre'
> element do something like:
>    "



 7 && $t < 20)
{
  fpassthrough("/var/www/daylight.css");
}
else if ( ($t > 6 && $t < 7) ||  ($t > 20 && $t < 21))
{
  fpassthrough("/var/www/twighlight.css");
}
else
{
  fpassthrough("/var/www/nighttime.css");
}

?>




Or how about different themes for the users to choose from, like many
CMS systems provide?



This can be done on any standard Linux installation in about half an
hour (apt-get install apache2 libapache2-mod-php5  - done). I couldn't
live without a database, php and apache (as a minimum).


The are so many goooood arguments to use css.

Readable HTML code or detecting the syntax of a token inside the code
block through the style class assigned to it. CSS classes are no color
values. CSS classes `classify' a container/string/token so we can learn
something more usefull about it, then just the color it has.

Please, use CSS. You won't regret it!


See:

http://cloud.github.com/downloads/SebastianRose/org-search.php/list-snippets.png




    Sebastian