emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Dirk-Jan C. Binnema" <djcb@djcbsoftware.nl>
To: Dan Davison <davison@stats.ox.ac.uk>
Cc: djcb <djcb@djcbsoftware.nl>,
	"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: html export with htmlized code blocks [SOLVED]
Date: Tue, 19 May 2009 23:04:11 +0300	[thread overview]
Message-ID: <20090519200411.GE6662@mindcrime> (raw)
In-Reply-To: <87skj0c3jq.fsf@stats.ox.ac.uk>

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

  reply	other threads:[~2009-05-19 20:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-19 18:19 html export with htmlized code blocks Dirk-Jan C. Binnema
2009-05-19 19:10 ` Dan Davison
2009-05-19 20:04   ` Dirk-Jan C. Binnema [this message]
2009-05-19 20:07   ` html export with htmlized code blocks [SOLVED] Dirk-Jan C. Binnema
2009-05-25 18:04     ` html export with htmlized code blocks [SOLVED, but...] Dirk-Jan C. Binnema
2009-05-25 18:33       ` Sebastian Rose
2009-05-25 18:35       ` Sebastian Rose
2009-05-25 20:03       ` Sebastian Rose
2009-05-19 20:20 ` html export with htmlized code blocks Sebastian Rose

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090519200411.GE6662@mindcrime \
    --to=djcb@djcbsoftware.nl \
    --cc=davison@stats.ox.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).