OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK-APPS: color coding


Hi,

Thanks for the advice. I especially like the code2html application. I would
like to extend my DocBook "framework" to include it. What I would like to
accomplish is this: if a <programlisting> element has the attribute "role"
set, apply syntax highlighting in that language e.g. <programlisting
role="html">.

How can i do this? Any help is greatly appreciated!

gr.
Arjan Huijzer




----- Original Message -----
From: "Yann Dirson" <ydirson@alcove.fr>
To: "Jirka Kosek" <jirka@kosek.cz>
Cc: "Arjan Huijzer" <ahuijze@bit-ic.nl>;
<docbook-apps@lists.oasis-open.org>; <a2ps@gnu.org>
Sent: Tuesday, October 16, 2001 1:17 PM
Subject: Re: DOCBOOK-APPS: color coding


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



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC