Next in thread → Next in month →

Re: [docbook-apps] Different Colors for Different Programming Languages (Syntax Highlighting)?

From
Thomas Schraitle <>
Date
2013-03-21T10:18:38+00:00
ID
Thread
Re: [docbook-apps] Different Colors for Different Programming Languages (Syntax Highlighting)?
Hi,

On Thu, 21 Mar 2013 10:25:46 +0100
Jirka Kosek <> wrote:

> [...]
> I'm not sure whether this is the easiest solution but you can override
> template apply-highlighting from highlighting/common.xsl in a way that
> for each language special mode will be invoked instead of just
> mode="xslthl", e.g.
> [...]
> Then you need to copy all templates with mode="xslthl" and change mode
> to xslthl-java and xslthl-cpp and make appropriate changes.

Ahh, right. Thanks for the hint!


> For future we might pass optional parameter called language to all
> templates in xslthl mode in order to for language in template for each
> kind of keyword. If you think this will work better for your scenario,
> please fill RFE.

That would be a good idea. I've opened RFE#3608694.


Thanks to Jirka and Joshua!


-- 
Gruß/Regards,
    Thomas Schraitle
Next in thread → Next in month →