I started using XSLT syntax highlighting and I'm very much impressed with the results. Thanks you.
One thing I would like to use differently is the usage of an external CSS file for the syntax highlighting. Currently the CSS is inlined with the HTML code. Ideally for me the HTML should use divs with the existing class attributes so that I select the styling of the coding myself in the external CSS file.
Is such an option available or planned?
Best regards, Lars
P.S. I tried to open an issue but it did not show up. Sorry, if this is just a delay and if I double-posed.
I don't know in which context you use XSLTHL, but you can map elements in xslthl:* namespace to any markup, including just spans with different class values to create hooks for external CSS.
Thanks. I'm using XSLTHL in the creation of HTML from Docbook sources via XSLT. Is the customization possible in this context?
In DocBook you can override the following templates to get requested behaviour:
Thanks. Looks easy enough.
Great solution. Thanks again.
There's also this example which mixes HTML+PHP, similar thing can be done with HTML and CSS: http://xslthl.sourceforge.net/examples/sample-article.html
The docbook source for this example: http://xslthl.sourceforge.net/examples/sample-article.xml
I'm not sure if the current version of Docbook supports this sort of mixing. But the following wiki page explains how to fix it:
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.