r351574nc3 / docbkx-tools

Automatically exported from code.google.com/p/docbkx-tools
0 stars 0 forks source link

Enhance verbatim stylesheet in DocBook to be able to use dp.SyntaxHighlighter #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, the pre tag that is generated is lacking a language attribute
that SyntaxHighlighter can use to highlight the code. 
SyntaxHighlighter is a bit more extensible than the embedded highlighting.
The change is non invasive, it requires the addition of 

<xsl:if test="@language != ''">
  <xsl:attribute name="language">
     <xsl:value-of select="@language"/>  
  </xsl:attribute>
</xsl:if>

at line 56 and 64 in verbatim.xsl. The pre tag will then also contain the
language attribute.

Original issue reported on code.google.com by doclolie...@gmail.com on 3 Jul 2009 at 2:58

GoogleCodeExporter commented 9 years ago
Hello,

Thank you for the tips but this kind of modification is on the docbook project 
side
(http://docbook.sourceforge.net/) or have to be added in the customization 
layer.

So I set it as WontFix on the docbkx-tool project.

Regards,
Cédric,

Original comment by MimilO...@gmail.com on 27 Jul 2009 at 1:12