From mboxrd@z Thu Jan  1 00:00:00 1970
From: "Dirk-Jan C. Binnema" <djcb.bulk@gmail.com>
Subject: Re: html export with htmlized code blocks [SOLVED]
Date: Tue, 19 May 2009 23:07:51 +0300
Message-ID: <20090519200751.GF6662@mindcrime>
References: <20090519181956.GD6662@mindcrime> <87skj0c3jq.fsf@stats.ox.ac.uk>
Reply-To: djcb@djcbsoftware.nl
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1M6VbT-0001as-IR
	for emacs-orgmode@gnu.org; Tue, 19 May 2009 16:07:59 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1M6VbP-0001Y6-1a
	for emacs-orgmode@gnu.org; Tue, 19 May 2009 16:07:59 -0400
Received: from [199.232.76.173] (port=53692 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1M6VbO-0001Y3-VQ
	for emacs-orgmode@gnu.org; Tue, 19 May 2009 16:07:54 -0400
Received: from emh04.mail.saunalahti.fi ([62.142.5.110]:39761)
	by monty-python.gnu.org with esmtps
	(TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60)
	(envelope-from <djcb.bulk@gmail.com>) id 1M6VbO-0001U1-EG
	for emacs-orgmode@gnu.org; Tue, 19 May 2009 16:07:54 -0400
Received: from saunalahti-vams (vs3-12.mail.saunalahti.fi [62.142.5.96])
	by emh04-2.mail.saunalahti.fi (Postfix) with SMTP id 28DB813B4BA
	for <emacs-orgmode@gnu.org>; Tue, 19 May 2009 23:07:52 +0300 (EEST)
Received: from mail.djcbsoftware.nl (a88-113-10-89.elisa-laajakaista.fi
	[88.113.10.89])
	by emh02.mail.saunalahti.fi (Postfix) with ESMTP id 1C8A22BD47
	for <emacs-orgmode@gnu.org>; Tue, 19 May 2009 23:07:51 +0300 (EEST)
Content-Disposition: inline
In-Reply-To: <87skj0c3jq.fsf@stats.ox.ac.uk>
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=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" <emacs-orgmode@gnu.org>

Hi Dan,

Op Tue 19 May 2009, om 21:10 (+0200) schreef Dan Davison:

> 
> "Dirk-Jan C. Binnema" <djcb.bulk@gmail.com> writes:
> 
> >
> > I seems that I should be able to automate that a bit... ie., maybe
> > something like:
> >
> > #+BEGIN_CODE(perl)
> > print "hello, world!";
> > #+END_CODE
> >
> >
> > But I'm not really sure if that would be the best approach. Did anyone
> > do something like this before?
> 
> Hi Dirk,
> 
> 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
> 
> Sorry if I've misunderstood.

Wow, exactly what I was looking for! [/me falls from chair in
amazement]. Org-mode is even more fantastic than I thought. Silly me for
not finding that in the docs.

Thanks!!
Dirk.

-- 
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