This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: [docbook] Programming language in programlisting
- From: Jirka Kosek <jirka at kosek dot cz>
- To: Lars Trieloff <lars at trieloff dot net>
- Cc: docbook at lists dot oasis-open dot org
- Date: Mon, 31 Mar 2003 22:30:51 +0200
- Subject: Re: [docbook] Programming language in programlisting
- References: <20030331200505.GA6882@notebook>
Lars Trieloff wrote:
> I am writing a Saxon-Extension for Syntax-Highlighting code in
> programlistings. My question is, how to specify the programming
> language of the code in the programlisting.
Cool! This will be great feature.
> As I understood lang, it is only for human languages. The other option
> seems to be role, so which version is better?
>
> <programlisting lang="java">
>
> or
>
> <programlisting role="java">
Definitively second one. Attribute lang is devoted to natural language
code, role can be used for anything you want.
Jirka
--
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka at kosek dot cz
http://www.kosek.cz
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-help at lists dot oasis-open dot org