[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] Programming language in programlisting
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@kosek.cz http://www.kosek.cz
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]