This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: color coding
- To: Jirka Kosek <jirka at kosek dot cz>
- Subject: Re: DOCBOOK-APPS: color coding
- From: Yann Dirson <ydirson at alcove dot fr>
- Date: Tue, 16 Oct 2001 13:17:26 +0200
- Cc: Arjan Huijzer <ahuijze at bit-ic dot nl>, docbook-apps at lists dot oasis-open dot org,a2ps at gnu dot org
- List-Id: <docbook-apps.lists.oasis-open.org>
- References: <008001c15573$1e7ea1e0$8a10030a@bitic.nl><3BCC103C.4CF7B5C1@kosek.cz>
On Tue, Oct 16, 2001 at 12:47:24PM +0200, Jirka Kosek wrote:
> Arjan Huijzer wrote:
>
> > I would like to process those program listings and output to html/xml:fo
> > with color coding. Are there extensions to the XSL stylesheets that can
> > apply such color coding or should I write them from scratch?
>
> By color coding you mean syntax highliting? AFAIK there is no such XSLT
> extensions. I'm thinkig about writing such extension about one year,
> unfortunately I hadn't time to write it. If you want to write it, I can
> share some ideas with you.
What about modifying GNU a2ps (http://www.inf.enst.fr/~demaille/a2ps/)
or code2html (http://www.palfrader.org/code2html/), which already
implement syntax highlignting for a number of languages ?
a2ps especially has support for an impressive list of languages
(http://www.inf.enst.fr/~demaille/a2ps/sheets/).
Maybe the author would be interested in modularizing the output layer
so that other formats (ie. docbook) than postscript could be produced.
I CC the a2ps list.
--
Yann Dirson <Yann.Dirson@fr.alcove.com> http://www.alcove.com/
Free-Software Engineer Ingénieur Logiciel-Libre
Free-Software time manager Responsable du temps Informatique-Libre
----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>