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] | [List Home]


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


Thomas, Publican [1] does this using the Kate HTML Syntax highlighting module. 

[1] https://fedorahosted.org/publican/

- Josh


~ Kirtan is Life! ~
Sent from my Mobile Device

On 21/03/2013, at 5:30 PM, Thomas Schraitle <tom_schr@web.de> wrote:

Hi,

DocBook supports syntax highlighting in programlisting elements with
the help of the language attribute and the highlighting stylesheets
({fo,*html*}/highlight.xsl and highlighting/common.xsl). This works for
me.

Now I'm wondering if I can go it a bit further. Usually, customizing
the colors are done in xslthl mode. However, as it seems, I cannot get
the original language attribute anymore. I would like to implement
different colors for different programming languages.

How can I do that? Is there a recommended procedure?

Thanks!

--
Gruß/Regards,
   Thomas Schraitle

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org



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