This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Re: Pretty printing source code
- From: Norman Walsh <ndw at nwalsh dot com>
- To: Bob Stayton <bobs at sco dot com>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 24 Nov 2003 14:41:06 -0500
- Subject: [docbook-apps] Re: Pretty printing source code
- References: <87fzggimdg.fsf@nwalsh.com> <20031124090537.D22425@sco.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
/ Bob Stayton <bobs@sco.com> was heard to say:
| On Sat, Nov 22, 2003 at 08:06:03AM -0500, Norman Walsh wrote:
|
| Um, Norm, it is a little terse to send an attachment
| with no explanation beyond the subject line. can you
| provide a little background about this attachment?
Bizarre. Matthew Braun found my accompanying text (thanks Matthew).
>Every now and then someone asks about pretty-printing source code.
>It's certainly possible to put inline markup inside a programlisting
>to do it, the trick is getting some pretty-printing engine to generate
>the right markup.
>
>Today I stumbled over 'htmlize', an emacs function that converts the
>font-lock highlighting of emacs into HTML:
>
> http://fly.srk.fer.hr/~hniksic/emacs/htmlize.el
>
>It turns out that this is nicely well-formed XHTML except for the
>namespace.
>
>So, if you htmlize a buffer and then edit it so that it has an XHTML
>namespace and appropriate doctype declaration (or none), you can
>process it with the attached stylesheet to generate "pretty printing
>DocBook".
>
>YMMV, etc. And no, I haven't updated the DocBook XSLT stylesheets to
>do anything with the roles etc. used by this stylesheet. But I'll get
>there eventually.
>
>P.S. I've sent in a request to the author of htmlize to add an XHTML
>option.
Sorry about that, folks.
Be seeing you,
norm
- --
Norman Walsh <ndw@nwalsh.com> | I think age is a very high price
http://www.oasis-open.org/docbook/ | to pay for maturity.--Tom Stoppard
Chair, DocBook Technical Committee |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iD8DBQE/wl7SOyltUcwYWjsRAteFAJ4o4c1OoexU0gq/jf/I6WiRMWb5LACeIDgv
rgM/ii0tuB49iR4JpXk4kiE=
=9j0t
-----END PGP SIGNATURE-----
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.