This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
[docbook] Re: Programming language in programlisting
- From: Norman Walsh <ndw at nwalsh dot com>
- To: docbook at lists dot oasis-open dot org
- Date: Tue, 01 Apr 2003 14:38:17 -0500
- Subject: [docbook] Re: Programming language in programlisting
- References: <20030331200505.GA6882@notebook> <3E88A57B.5EBB7207@kosek.cz>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
/ Jirka Kosek <jirka at kosek dot cz> was heard to say:
| 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.
You can't use the former, so the latter is preferred. On the other hand,
this looks like a good reason to add a 'syntax' attribute to verbatim
environments.
Be seeing you,
norm
- --
Norman Walsh <ndw at nwalsh dot com> | Everything the same; everything
http://www.oasis-open.org/docbook/ | distinct.
Chair, DocBook Technical Committee |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>
iD8DBQE+ieqpOyltUcwYWjsRAqOpAJ4t/dGY7000cV0dGVyGWbzgBBY+qACfYVNB
DTXYehSbrTwtN2mWki//b5c=
=aJ22
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
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