From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dirk-Jan C. Binnema" Subject: Re: html export with htmlized code blocks [SOLVED, but...] Date: Mon, 25 May 2009 21:04:36 +0300 Message-ID: <20090525180436.GB6128@mindcrime> References: <20090519181956.GD6662@mindcrime> <87skj0c3jq.fsf@stats.ox.ac.uk> <20090519200751.GF6662@mindcrime> Reply-To: djcb@djcbsoftware.nl Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M8eXY-0003WN-4k for emacs-orgmode@gnu.org; Mon, 25 May 2009 14:04:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8eXS-0003UQ-5R for emacs-orgmode@gnu.org; Mon, 25 May 2009 14:04:47 -0400 Received: from [199.232.76.173] (port=58353 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8eXS-0003UC-2s for emacs-orgmode@gnu.org; Mon, 25 May 2009 14:04:42 -0400 Received: from emh01.mail.saunalahti.fi ([62.142.5.107]:49303) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M8eXR-0007UQ-EB for emacs-orgmode@gnu.org; Mon, 25 May 2009 14:04:41 -0400 Received: from saunalahti-vams (vs3-12.mail.saunalahti.fi [62.142.5.96]) by emh01-2.mail.saunalahti.fi (Postfix) with SMTP id 1B7C08CA1A for ; Mon, 25 May 2009 21:04:38 +0300 (EEST) Received: from mail.djcbsoftware.nl (a88-113-10-89.elisa-laajakaista.fi [88.113.10.89]) by emh01.mail.saunalahti.fi (Postfix) with ESMTP id EA5BD402E for ; Mon, 25 May 2009 21:04:36 +0300 (EEST) Content-Disposition: inline In-Reply-To: <20090519200751.GF6662@mindcrime> 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: "emacs-orgmode@gnu.org" Dave already gave the excellent #+BEGIN_SRC tip and I have happily included it in my workflow: http://emacs-fu.blogspot.com/2009/05/writing-and-blogging-with-org-mode.html One small remaining question... he html for the code blocks looks something like:
;; some comment

So, the code has all of it's CSS inline -- which is nice because that
way people who read through aggregators or feed readers also get the
colors.

*however* the 
 expects to find its style
information in . And that part is not used by RSS / aggregators --
I am using a dark color theme in my emacs, which is reflect in the
colors in use for code: the whole 
 block should
have a black background, so people can read my light-yellow code...

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:
   "
 Op Tue 19 May 2009, om 21:10 (+0200) schreef Dan Davison:
> > 
> > I think what you are describing is achieved by
> > 
> > * some heading
> > #+BEGIN_SRC perl
> > print "hello, world!";
> > #+END_SRC
> > 
> > Then you just export the buffer as HTML.
> > 
> > See 
> > 
> > http://orgmode.org/manual/Literal-examples.html#Literal-examples




-- 
Dirk-Jan C. Binnema                  Helsinki, Finland
e:djcb@djcbsoftware.nl           w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C