Add partially complete syntax highlighting to the HV1 transform.
[pub/lufa.git] / LUFA / StudioIntegration / HV1 / lufa_hv1_transform.xslt
diff --git a/LUFA/StudioIntegration/HV1/lufa_hv1_transform.xslt b/LUFA/StudioIntegration/HV1/lufa_hv1_transform.xslt
new file mode 100644 (file)
index 0000000..ff381ea
--- /dev/null
@@ -0,0 +1,49 @@
+<!--\r
+             LUFA Library\r
+     Copyright (C) Dean Camera, 2013.\r
+\r
+  dean [at] fourwalledcubicle [dot] com\r
+           www.lufa-lib.org\r
+-->\r
+\r
+<!-- Docbook XML to Microsoft Help Viewer 1.0 transform file -->\r
+\r
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">\r
+\r
+       <xsl:import href="../Docbook/mshelp/docbook.xsl"/>\r
+\r
+       <xsl:output method="xml" indent="no"/>\r
+\r
+<!--\r
+       <xsl:template match="emphasis[@role = 'keyword' or @role = 'keywordtype' or @role = 'keywordflow']">\r
+               <span class="hl-keyword" style="color: #0079C1; display:inline-block">\r
+                       <xsl:apply-templates/>\r
+               </span>\r
+       </xsl:template>\r
+\r
+       <xsl:template match="emphasis[@role = 'stringliteral' or @role = 'charliteral']">\r
+               <span class="hl-string" style="color: #800000; display:inline-block">\r
+                       <xsl:apply-templates/>\r
+               </span>\r
+       </xsl:template>\r
+\r
+       <xsl:template match="emphasis[@role = 'comment']">\r
+               <span class="hl-comment" style="color: #008000; display:inline-block">\r
+                       <xsl:apply-templates/>\r
+               </span>\r
+       </xsl:template>\r
+\r
+       <xsl:template match="emphasis[@role = 'preprocessor']">\r
+               <span class="hl-preprocessor" style="color: #A000A0; display:inline-block">\r
+                       <xsl:apply-templates/>\r
+               </span>\r
+       </xsl:template>\r
+\r
+       <xsl:template match="emphasis[@role = 'normal' and ancestor::programlisting]">\r
+               <span>\r
+                       <xsl:apply-templates/>\r
+               </span>\r
+       </xsl:template>\r
+-->\r
+\r
+</xsl:stylesheet>\r