]> granicus.if.org Git - docbook-dsssl/commitdiff
Upgraded to support the latest version of XSLTHL 2.0
authorJirka Kosek <jirka@kosek.cz>
Fri, 18 Jul 2008 21:26:36 +0000 (21:26 +0000)
committerJirka Kosek <jirka@kosek.cz>
Fri, 18 Jul 2008 21:26:36 +0000 (21:26 +0000)
 -- nested markup in highlited code is now processed
 -- it is no longer needed to specify path XSLTHL configuration file using Java property
 -- support for new languages, including Perl, Python and Ruby was added

24 files changed:
xsl/fo/highlight.xsl
xsl/fo/param.ent
xsl/fo/param.xweb
xsl/highlighting/c-hl.xml
xsl/highlighting/common.xsl
xsl/highlighting/cpp-hl.xml [new file with mode: 0644]
xsl/highlighting/csharp-hl.xml [new file with mode: 0644]
xsl/highlighting/delphi-hl.xml
xsl/highlighting/ini-hl.xml
xsl/highlighting/java-hl.xml
xsl/highlighting/javascript-hl.xml [new file with mode: 0644]
xsl/highlighting/m2-hl.xml
xsl/highlighting/myxml-hl.xml
xsl/highlighting/perl-hl.xml [new file with mode: 0644]
xsl/highlighting/php-hl.xml
xsl/highlighting/python-hl.xml [new file with mode: 0644]
xsl/highlighting/ruby-hl.xml [new file with mode: 0644]
xsl/highlighting/tcl-hl.xml [new file with mode: 0644]
xsl/highlighting/xslthl-config.xml
xsl/html/highlight.xsl
xsl/html/param.ent
xsl/html/param.xweb
xsl/params/highlight.source.xml
xsl/params/highlight.xslthl.config.xml [new file with mode: 0644]

index 829aad844e41ea2660811ed98e29e6cb34e9c3a8..ae9c71fda642fd2336ea6dd4d68b71a364daa5a2 100644 (file)
 \r
      ******************************************************************** -->\r
 \r
-<xsl:template match='xslthl:keyword'>\r
-  <fo:inline font-weight="bold"><xsl:apply-templates/></fo:inline>\r
+<xsl:template match='xslthl:keyword' mode="xslthl">\r
+  <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
 </xsl:template>\r
 \r
-<xsl:template match='xslthl:string'>\r
-  <fo:inline font-weight="bold" font-style="italic"><xsl:apply-templates/></fo:inline>\r
+<xsl:template match='xslthl:string' mode="xslthl">\r
+  <fo:inline font-weight="bold" font-style="italic"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
 </xsl:template>\r
 \r
-<xsl:template match='xslthl:comment'>\r
-  <fo:inline font-style="italic"><xsl:apply-templates/></fo:inline>\r
+<xsl:template match='xslthl:comment' mode="xslthl">\r
+  <fo:inline font-style="italic"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
 </xsl:template>\r
 \r
-<xsl:template match='xslthl:tag'>\r
-  <fo:inline font-weight="bold"><xsl:apply-templates/></fo:inline>\r
+<xsl:template match='xslthl:tag' mode="xslthl">\r
+  <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
 </xsl:template>\r
 \r
-<xsl:template match='xslthl:attribute'>\r
-  <fo:inline font-weight="bold"><xsl:apply-templates/></fo:inline>\r
+<xsl:template match='xslthl:attribute' mode="xslthl">\r
+  <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
 </xsl:template>\r
 \r
-<xsl:template match='xslthl:value'>\r
-  <fo:inline font-weight="bold"><xsl:apply-templates/></fo:inline>\r
+<xsl:template match='xslthl:value' mode="xslthl">\r
+  <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
 </xsl:template>\r
 \r
 <!--\r
 </xsl:template>\r
 -->\r
 \r
+<xsl:template match='xslthl:number' mode="xslthl">\r
+  <xsl:apply-templates mode="xslthl"/>\r
+</xsl:template>\r
+\r
+<xsl:template match='xslthl:annotation' mode="xslthl">\r
+  <fo:inline color="gray"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
+</xsl:template>\r
+\r
+<xsl:template match='xslthl:directive' mode="xslthl">\r
+  <xsl:apply-templates mode="xslthl"/>\r
+</xsl:template>\r
+\r
+<!-- Not sure which element will be in final XSLTHL 2.0 -->\r
+<xsl:template match='xslthl:doccomment|xslthl:doctype' mode="xslthl">\r
+  <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
+</xsl:template>\r
+\r
+\r
 </xsl:stylesheet>\r
 \r
index 77a5d4a37a228591f7341d8b9b4d06a74882a60e..61454fd5bf5877583d3df32aca13f6b37a518e37 100644 (file)
@@ -89,6 +89,7 @@
 <!ENTITY headers.on.blank.pages SYSTEM "../params/headers.on.blank.pages.xml">
 <!ENTITY highlight.default.language SYSTEM "../params/highlight.default.language.xml"> 
 <!ENTITY highlight.source SYSTEM "../params/highlight.source.xml"> 
+<!ENTITY highlight.xslthl.config SYSTEM "../params/highlight.xslthl.config.xml"> 
 <!ENTITY hyphenate SYSTEM "../params/hyphenate.xml">
 <!ENTITY hyphenate.verbatim SYSTEM "../params/hyphenate.verbatim.xml">
 <!ENTITY hyphenate.verbatim.characters SYSTEM "../params/hyphenate.verbatim.characters.xml">
index 36b481efe2c33a8bc5b2bf5348166c2cf97570f8..d89b07d5c17e6bc181123db13247cf6629255bb8 100644 (file)
@@ -256,6 +256,7 @@ generate.section.toc.level;
 &subscript.properties;
 &pgwide.properties;
 &highlight.source;
+&highlight.xslthl.config;
 &highlight.default.language;
 &email.delimiters.enabled;
 &section.container.element;
@@ -649,6 +650,7 @@ around all these parameters.</para>
 <src:fragref linkend="headers.on.blank.pages.frag"/>
 <src:fragref linkend="highlight.default.language.frag"/>
 <src:fragref linkend="highlight.source.frag"/>
+<src:fragref linkend="highlight.xslthl.config.frag"/>
 <src:fragref linkend="hyphenate.frag"/>
 <src:fragref linkend="hyphenate.verbatim.frag"/>
 <src:fragref linkend="hyphenate.verbatim.characters.frag"/>
index ad86bb3fd707d21a2c2121bc905038e26f0009aa..1503dd1d94737ecdce203195eeb8df3bd474d939 100644 (file)
-<?xml version='1.0'?>
-<highlighters>
-
-<highlighter type='multiline-comment'>
-  <start>/*</start>
-  <end>*/</end>
-</highlighter>
-
-<highlighter type='oneline-comment'>
-  //
-</highlighter>
-
-<highlighter type='oneline-comment'>
-  #
-</highlighter>
-
-<highlighter type='string'>
-  <string>"</string>
-  <escape>\</escape>
-</highlighter>
-
-<highlighter type='string'>
-  <string>'</string>
-  <escape>\</escape>
-</highlighter>
-
-<highlighter type='heredoc'>
-  <start>&lt;&lt;&lt;</start>
-</highlighter>
-
-<highlighter type='keywords'>
-  <keyword>and</keyword>
-  <keyword>auto</keyword>
-  <keyword>break</keyword>
-  <keyword>case</keyword>
-  <keyword>char</keyword>
-  <keyword>class</keyword>
-  <keyword>__CLASS__</keyword>
-  <keyword>const</keyword>
-  <keyword>continue</keyword>
-  <keyword>declare</keyword>
-  <keyword>default</keyword>
-  <keyword>do</keyword>
-  <keyword>double</keyword>
-  <keyword>else</keyword>
-  <keyword>enum</keyword>
-  <keyword>exit</keyword>
-  <keyword>extern</keyword>
-  <keyword>__FILE__</keyword>
-  <keyword>float</keyword>
-  <keyword>for</keyword>
-  <keyword>global</keyword>
-  <keyword>goto</keyword>
-  <keyword>if</keyword>
-  <keyword>include</keyword>
-  <keyword>int</keyword>
-  <keyword>__LINE__</keyword>
-  <keyword>long</keyword>
-  <keyword>new</keyword>
-  <keyword>or</keyword>
-  <keyword>private</keyword>
-  <keyword>protected</keyword>
-  <keyword>public</keyword>
-  <keyword>register</keyword>
-  <keyword>return</keyword>
-  <keyword>short</keyword>
-  <keyword>signed</keyword>
-  <keyword>sizeof</keyword>
-  <keyword>static</keyword>
-  <keyword>struct</keyword>
-  <keyword>switch</keyword>
-  <keyword>typedef</keyword>
-  <keyword>union</keyword>
-  <keyword>unsigned</keyword>
-  <keyword>void</keyword>
-  <keyword>volatile</keyword>
-  <keyword>while</keyword>
-  <ignoreCase/>
-</highlighter>
-
-</highlighters>
-<!--
-
-Copyright (c) 2005 Michal Molhanec
-
-This software is provided 'as-is', without any express or implied
-warranty. In no event will the authors be held liable for any damages
-arising from the use of this software.
-
-Permission is granted to anyone to use this software for any purpose,
-including commercial applications, and to alter it and redistribute it
-freely, subject to the following restrictions:
-
-1. The origin of this software must not be misrepresented; you must
-   not claim that you wrote the original software. If you use this
-   software in a product, an acknowledgment in the product
-   documentation would be appreciated but is not required.
-
-2. Altered source versions must be plainly marked as such, and must
-   not be misrepresented as being the original software.
-
-3. This notice may not be removed or altered from any source
-   distribution.
-
--->
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>\r
+       <!--\r
+               Syntax highlighting definition for C xslthl - XSLT Syntax Highlighting http://sourceforge.net/projects/xslthl/\r
+               Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks This software is provided 'as-is', without any\r
+               express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this\r
+               software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and\r
+               to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not\r
+               be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an\r
+               acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must\r
+               be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be\r
+               removed or altered from any source distribution. Michal Molhanec <mol1111 at users.sourceforge.net> Jirka Kosek <kosek\r
+               at users.sourceforge.net> Michiel Hendriks <elmuerte at users.sourceforge.net>\r
+       -->\r
+<highlighters>\r
+       <highlighter type="multiline-comment">\r
+               <start>/**</start>\r
+               <end>*/</end>\r
+               <style>doccomment</style>\r
+       </highlighter>\r
+       <highlighter type="oneline-comment">\r
+               <start>///</start>\r
+               <style>doccomment</style>\r
+       </highlighter>\r
+       <highlighter type="multiline-comment">\r
+               <start>/*</start>\r
+               <end>*/</end>\r
+       </highlighter>\r
+       <highlighter type="oneline-comment">//</highlighter>\r
+       <highlighter type="oneline-comment">\r
+               <!-- use the online-comment highlighter to detect directives -->\r
+               <start>#</start>\r
+               <lineBreakEscape>\</lineBreakEscape>\r
+               <style>directive</style>\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>"</string>\r
+               <escape>\</escape>\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>'</string>\r
+               <escape>\</escape>\r
+       </highlighter>\r
+       <highlighter type="hexnumber">\r
+               <prefix>0x</prefix>\r
+               <suffix>ul</suffix>\r
+               <suffix>lu</suffix>\r
+               <suffix>u</suffix>\r
+               <suffix>l</suffix>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="number">\r
+               <point>.</point>\r
+               <pointStarts />\r
+               <exponent>e</exponent>\r
+               <suffix>ul</suffix>\r
+               <suffix>lu</suffix>\r
+               <suffix>u</suffix>\r
+               <suffix>f</suffix>\r
+               <suffix>l</suffix>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="keywords">\r
+               <keyword>auto</keyword>\r
+               <keyword>_Bool</keyword>\r
+               <keyword>break</keyword>\r
+               <keyword>case</keyword>\r
+               <keyword>char</keyword>\r
+               <keyword>_Complex</keyword>\r
+               <keyword>const</keyword>\r
+               <keyword>continue</keyword>\r
+               <keyword>default</keyword>\r
+               <keyword>do</keyword>\r
+               <keyword>double</keyword>\r
+               <keyword>else</keyword>\r
+               <keyword>enum</keyword>\r
+               <keyword>extern</keyword>\r
+               <keyword>float</keyword>\r
+               <keyword>for</keyword>\r
+               <keyword>goto</keyword>\r
+               <keyword>if</keyword>\r
+               <keyword>_Imaginary</keyword>\r
+               <keyword>inline</keyword>\r
+               <keyword>int</keyword>\r
+               <keyword>long</keyword>\r
+               <keyword>register</keyword>\r
+               <keyword>restrict</keyword>\r
+               <keyword>return</keyword>\r
+               <keyword>short</keyword>\r
+               <keyword>signed</keyword>\r
+               <keyword>sizeof</keyword>\r
+               <keyword>static</keyword>\r
+               <keyword>struct</keyword>\r
+               <keyword>switch</keyword>\r
+               <keyword>typedef</keyword>\r
+               <keyword>union</keyword>\r
+               <keyword>unsigned</keyword>\r
+               <keyword>void</keyword>\r
+               <keyword>volatile</keyword>\r
+               <keyword>while</keyword>\r
+       </highlighter>\r
+</highlighters>
\ No newline at end of file
index 198cd3408e5386b4a5205fa3b44c45a0e8e3634a..604074380a4ee727281693a592d91679cbe3445e 100644 (file)
@@ -1,9 +1,18 @@
 <?xml version='1.0'?>\r
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"\r
-               xmlns:hl="java:net.sf.xslthl.ConnectorSaxon6"\r
-                xmlns:exsl="http://exslt.org/common"\r
-               exclude-result-prefixes="exsl hl"\r
-                version='1.0'>\r
+               xmlns:d="http://docbook.org/ns/docbook"\r
+\r
+               xmlns:s6hl="http://net.sf.xslthl/ConnectorSaxon6" \r
+               xmlns:sbhl="http://net.sf.xslthl/ConnectorSaxonB" \r
+               xmlns:xhl="http://net.sf.xslthl/ConnectorXalan"\r
+               xmlns:saxon6="http://icl.com/saxon" \r
+               xmlns:saxonb="http://saxon.sf.net/" \r
+               xmlns:xalan="http://xml.apache.org/xalan"\r
+               \r
+               xmlns:exsl="http://exslt.org/common"\r
+               xmlns:xslthl="http://xslthl.sf.net"\r
+               exclude-result-prefixes="exsl d xslthl s6hl sbhl xhl"\r
+               version='1.0'>\r
 \r
 <!-- ********************************************************************\r
      $Id$\r
 \r
      ******************************************************************** -->\r
 \r
+<!-- this construction is needed to have the saxon and xalan connectors working alongside each other -->\r
+<xalan:component prefix="xhl" functions="highlight">\r
+       <xalan:script lang="javaclass" src="xalan://net.sf.xslthl.ConnectorXalan" />\r
+</xalan:component>\r
+\r
+<!-- for saxon 6 -->\r
+<saxon6:script implements-prefix="s6hl" language="java" src="java:net.sf.xslthl.ConnectorSaxon6" />\r
+\r
+<!-- for saxon 8.5 and later -->\r
+<saxonb:script implements-prefix="sbhl" language="java" src="java:net.sf.xslthl.ConnectorSaxonB" />  \r
+\r
+\r
 <!-- You can override this template to do more complex mapping of\r
      language attribute to highlighter language ID (see xslthl-config.xml) -->\r
 <xsl:template name="language.to.xslthl">\r
@@ -33,7 +54,7 @@
 <xsl:template name="apply-highlighting">\r
   <xsl:choose>\r
     <!-- Do we want syntax highlighting -->\r
-    <xsl:when test="$highlight.source != 0 and function-available('hl:highlight')">\r
+    <xsl:when test="$highlight.source != 0">\r
       <xsl:variable name="language">\r
        <xsl:call-template name="language.to.xslthl">\r
          <xsl:with-param name="context" select="."/>\r
          <xsl:variable name="content">\r
            <xsl:apply-templates/>\r
          </xsl:variable>\r
-         <xsl:apply-templates select="hl:highlight($language, exsl:node-set($content))"/>\r
+         <xsl:choose>\r
+           <xsl:when test="function-available('s6hl:highlight')">\r
+             <xsl:apply-templates select="s6hl:highlight($language, exsl:node-set($content), $highlight.xslthl.config)"\r
+                                  mode="xslthl"/>\r
+           </xsl:when>\r
+           <xsl:when test="function-available('sbhl:highlight')">\r
+             <xsl:apply-templates select="sbhl:highlight($language, exsl:node-set($content), $highlight.xslthl.config)"\r
+                                  mode="xslthl"/>\r
+           </xsl:when>\r
+           <xsl:when test="function-available('xhl:highlight')">\r
+             <xsl:apply-templates select="xhl:highlight($language, exsl:node-set($content), $highlight.xslthl.config)"\r
+                                  mode="xslthl"/>\r
+           </xsl:when>\r
+           <xsl:otherwise>\r
+             <xsl:copy-of select="$content"/>\r
+           </xsl:otherwise>\r
+         </xsl:choose>\r
        </xsl:when>\r
        <xsl:otherwise>\r
          <xsl:apply-templates/>\r
   </xsl:choose>\r
 </xsl:template>\r
 \r
-</xsl:stylesheet>\r
+<!-- A fallback when the specific style isn't recognized -->\r
+<xsl:template match="xslthl:*" mode="xslthl">\r
+  <xsl:message>\r
+    <xsl:text>unprocessed xslthl style: </xsl:text>\r
+    <xsl:value-of select="local-name(.)" />\r
+  </xsl:message>\r
+  <xsl:apply-templates mode="xslthl"/>\r
+</xsl:template>\r
+\r
+<!-- Copy over already produced markup (FO/HTML) -->\r
+<xsl:template match="node()" mode="xslthl" priority="-1">\r
+  <xsl:copy>\r
+    <xsl:apply-templates select="node()" mode="xslthl"/>\r
+  </xsl:copy>\r
+</xsl:template>\r
+\r
+<xsl:template match="*" mode="xslthl">\r
+  <xsl:copy>\r
+    <xsl:copy-of select="@*"/>\r
+    <xsl:apply-templates select="node()" mode="xslthl"/>\r
+  </xsl:copy>\r
+</xsl:template>\r
 \r
+</xsl:stylesheet>
\ No newline at end of file
diff --git a/xsl/highlighting/cpp-hl.xml b/xsl/highlighting/cpp-hl.xml
new file mode 100644 (file)
index 0000000..db57d5e
--- /dev/null
@@ -0,0 +1,150 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+\r
+Syntax highlighting definition for C++\r
+\r
+xslthl - XSLT Syntax Highlighting\r
+http://sourceforge.net/projects/xslthl/\r
+Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks\r
+\r
+This software is provided 'as-is', without any express or implied\r
+warranty.  In no event will the authors be held liable for any damages\r
+arising from the use of this software.\r
+\r
+Permission is granted to anyone to use this software for any purpose,\r
+including commercial applications, and to alter it and redistribute it\r
+freely, subject to the following restrictions:\r
+\r
+1. The origin of this software must not be misrepresented; you must not\r
+   claim that you wrote the original software. If you use this software\r
+   in a product, an acknowledgment in the product documentation would be\r
+   appreciated but is not required.\r
+2. Altered source versions must be plainly marked as such, and must not be\r
+   misrepresented as being the original software.\r
+3. This notice may not be removed or altered from any source distribution.\r
+\r
+Michal Molhanec <mol1111 at users.sourceforge.net>\r
+Jirka Kosek <kosek at users.sourceforge.net>\r
+Michiel Hendriks <elmuerte at users.sourceforge.net>\r
+\r
+-->\r
+<highlighters>\r
+       <highlighter type="multiline-comment">\r
+               <start>/**</start>\r
+               <end>*/</end>\r
+               <style>doccomment</style>\r
+       </highlighter>\r
+       <highlighter type="oneline-comment">\r
+               <start>///</start>\r
+               <style>doccomment</style>\r
+       </highlighter>\r
+       <highlighter type="multiline-comment">\r
+               <start>/*</start>\r
+               <end>*/</end>\r
+       </highlighter>\r
+       <highlighter type="oneline-comment">//</highlighter>\r
+       <highlighter type="oneline-comment">\r
+               <!-- use the online-comment highlighter to detect directives -->\r
+               <start>#</start>\r
+               <lineBreakEscape>\</lineBreakEscape>\r
+               <style>directive</style>\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>"</string>\r
+               <escape>\</escape>\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>'</string>\r
+               <escape>\</escape>\r
+       </highlighter>\r
+       <highlighter type="hexnumber">\r
+               <prefix>0x</prefix>\r
+               <suffix>ul</suffix>\r
+               <suffix>lu</suffix>\r
+               <suffix>u</suffix>\r
+               <suffix>l</suffix>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="number">\r
+               <point>.</point>\r
+               <pointStarts />\r
+               <exponent>e</exponent>\r
+               <suffix>ul</suffix>\r
+               <suffix>lu</suffix>\r
+               <suffix>u</suffix>\r
+               <suffix>f</suffix>\r
+               <suffix>l</suffix>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="keywords">\r
+               <!-- C keywords -->\r
+               <keyword>auto</keyword>\r
+               <keyword>_Bool</keyword>\r
+               <keyword>break</keyword>\r
+               <keyword>case</keyword>\r
+               <keyword>char</keyword>\r
+               <keyword>_Complex</keyword>\r
+               <keyword>const</keyword>\r
+               <keyword>continue</keyword>\r
+               <keyword>default</keyword>\r
+               <keyword>do</keyword>\r
+               <keyword>double</keyword>\r
+               <keyword>else</keyword>\r
+               <keyword>enum</keyword>\r
+               <keyword>extern</keyword>\r
+               <keyword>float</keyword>\r
+               <keyword>for</keyword>\r
+               <keyword>goto</keyword>\r
+               <keyword>if</keyword>\r
+               <keyword>_Imaginary</keyword>\r
+               <keyword>inline</keyword>\r
+               <keyword>int</keyword>\r
+               <keyword>long</keyword>\r
+               <keyword>register</keyword>\r
+               <keyword>restrict</keyword>\r
+               <keyword>return</keyword>\r
+               <keyword>short</keyword>\r
+               <keyword>signed</keyword>\r
+               <keyword>sizeof</keyword>\r
+               <keyword>static</keyword>\r
+               <keyword>struct</keyword>\r
+               <keyword>switch</keyword>\r
+               <keyword>typedef</keyword>\r
+               <keyword>union</keyword>\r
+               <keyword>unsigned</keyword>\r
+               <keyword>void</keyword>\r
+               <keyword>volatile</keyword>\r
+               <keyword>while</keyword>\r
+               <!-- C++ keywords -->\r
+               <keyword>asm</keyword>\r
+               <keyword>dynamic_cast</keyword>\r
+               <keyword>namespace</keyword>\r
+               <keyword>reinterpret_cast</keyword>\r
+               <keyword>try</keyword>\r
+               <keyword>bool</keyword>\r
+               <keyword>explicit</keyword>\r
+               <keyword>new</keyword>\r
+               <keyword>static_cast</keyword>\r
+               <keyword>typeid</keyword>\r
+               <keyword>catch</keyword>\r
+               <keyword>false</keyword>\r
+               <keyword>operator</keyword>\r
+               <keyword>template</keyword>\r
+               <keyword>typename</keyword>\r
+               <keyword>class</keyword>\r
+               <keyword>friend</keyword>\r
+               <keyword>private</keyword>\r
+               <keyword>this</keyword>\r
+               <keyword>using</keyword>\r
+               <keyword>const_cast</keyword>\r
+               <keyword>inline</keyword>\r
+               <keyword>public</keyword>\r
+               <keyword>throw</keyword>\r
+               <keyword>virtual</keyword>\r
+               <keyword>delete</keyword>\r
+               <keyword>mutable</keyword>\r
+               <keyword>protected</keyword>\r
+               <keyword>true</keyword>\r
+               <keyword>wchar_t</keyword>\r
+       </highlighter>\r
+</highlighters>
\ No newline at end of file
diff --git a/xsl/highlighting/csharp-hl.xml b/xsl/highlighting/csharp-hl.xml
new file mode 100644 (file)
index 0000000..99c2e3e
--- /dev/null
@@ -0,0 +1,187 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+\r
+Syntax highlighting definition for C#\r
+\r
+xslthl - XSLT Syntax Highlighting\r
+http://sourceforge.net/projects/xslthl/\r
+Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks\r
+\r
+This software is provided 'as-is', without any express or implied\r
+warranty.  In no event will the authors be held liable for any damages\r
+arising from the use of this software.\r
+\r
+Permission is granted to anyone to use this software for any purpose,\r
+including commercial applications, and to alter it and redistribute it\r
+freely, subject to the following restrictions:\r
+\r
+1. The origin of this software must not be misrepresented; you must not\r
+   claim that you wrote the original software. If you use this software\r
+   in a product, an acknowledgment in the product documentation would be\r
+   appreciated but is not required.\r
+2. Altered source versions must be plainly marked as such, and must not be\r
+   misrepresented as being the original software.\r
+3. This notice may not be removed or altered from any source distribution.\r
+\r
+Michal Molhanec <mol1111 at users.sourceforge.net>\r
+Jirka Kosek <kosek at users.sourceforge.net>\r
+Michiel Hendriks <elmuerte at users.sourceforge.net>\r
+\r
+-->\r
+<highlighters>\r
+       <highlighter type="multiline-comment">\r
+               <start>/**</start>\r
+               <end>*/</end>\r
+               <style>doccomment</style>\r
+       </highlighter>\r
+       <highlighter type="oneline-comment">\r
+               <start>///</start>\r
+               <style>doccomment</style>\r
+       </highlighter>\r
+       <highlighter type="multiline-comment">\r
+               <start>/*</start>\r
+               <end>*/</end>\r
+       </highlighter>\r
+       <highlighter type="oneline-comment">//</highlighter>\r
+       <highlighter type="annotation">\r
+               <!-- annotations are called (custom) "attributes" in .NET -->\r
+               <start>[</start>\r
+               <end>]</end>\r
+               <valueStart>(</valueStart>\r
+               <valueEnd>)</valueEnd>\r
+       </highlighter>\r
+       <highlighter type="oneline-comment">\r
+               <!-- C# supports a couple of directives -->\r
+               <start>#</start>\r
+               <lineBreakEscape>\</lineBreakEscape>\r
+               <style>directive</style>\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <!-- strings starting with an "@" can span multiple lines -->\r
+               <string>@"</string>\r
+               <endString>"</endString>\r
+               <escape>\</escape>\r
+               <spanNewLines />\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>"</string>\r
+               <escape>\</escape>\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>'</string>\r
+               <escape>\</escape>\r
+       </highlighter>\r
+       <highlighter type="hexnumber">\r
+               <prefix>0x</prefix>\r
+               <suffix>ul</suffix>\r
+               <suffix>lu</suffix>\r
+               <suffix>u</suffix>\r
+               <suffix>l</suffix>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="number">\r
+               <point>.</point>\r
+               <pointStarts />\r
+               <exponent>e</exponent>\r
+               <suffix>ul</suffix>\r
+               <suffix>lu</suffix>\r
+               <suffix>u</suffix>\r
+               <suffix>f</suffix>\r
+               <suffix>d</suffix>\r
+               <suffix>m</suffix>\r
+               <suffix>l</suffix>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="keywords">\r
+               <keyword>abstract</keyword>\r
+               <keyword>as</keyword>\r
+               <keyword>base</keyword>\r
+               <keyword>bool</keyword>\r
+               <keyword>break</keyword>\r
+               <keyword>byte</keyword>\r
+               <keyword>case</keyword>\r
+               <keyword>catch</keyword>\r
+               <keyword>char</keyword>\r
+               <keyword>checked</keyword>\r
+               <keyword>class</keyword>\r
+               <keyword>const</keyword>\r
+               <keyword>continue</keyword>\r
+               <keyword>decimal</keyword>\r
+               <keyword>default</keyword>\r
+               <keyword>delegate</keyword>\r
+               <keyword>do</keyword>\r
+               <keyword>double</keyword>\r
+               <keyword>else</keyword>\r
+               <keyword>enum</keyword>\r
+               <keyword>event</keyword>\r
+               <keyword>explicit</keyword>\r
+               <keyword>extern</keyword>\r
+               <keyword>false</keyword>\r
+               <keyword>finally</keyword>\r
+               <keyword>fixed</keyword>\r
+               <keyword>float</keyword>\r
+               <keyword>for</keyword>\r
+               <keyword>foreach</keyword>\r
+               <keyword>goto</keyword>\r
+               <keyword>if</keyword>\r
+               <keyword>implicit</keyword>\r
+               <keyword>in</keyword>\r
+               <keyword>int</keyword>\r
+               <keyword>interface</keyword>\r
+               <keyword>internal</keyword>\r
+               <keyword>is</keyword>\r
+               <keyword>lock</keyword>\r
+               <keyword>long</keyword>\r
+               <keyword>namespace</keyword>\r
+               <keyword>new</keyword>\r
+               <keyword>null</keyword>\r
+               <keyword>object</keyword>\r
+               <keyword>operator</keyword>\r
+               <keyword>out</keyword>\r
+               <keyword>override</keyword>\r
+               <keyword>params</keyword>\r
+               <keyword>private</keyword>\r
+               <keyword>protected</keyword>\r
+               <keyword>public</keyword>\r
+               <keyword>readonly</keyword>\r
+               <keyword>ref</keyword>\r
+               <keyword>return</keyword>\r
+               <keyword>sbyte</keyword>\r
+               <keyword>sealed</keyword>\r
+               <keyword>short</keyword>\r
+               <keyword>sizeof</keyword>\r
+               <keyword>stackalloc</keyword>\r
+               <keyword>static</keyword>\r
+               <keyword>string</keyword>\r
+               <keyword>struct</keyword>\r
+               <keyword>switch</keyword>\r
+               <keyword>this</keyword>\r
+               <keyword>throw</keyword>\r
+               <keyword>true</keyword>\r
+               <keyword>try</keyword>\r
+               <keyword>typeof</keyword>\r
+               <keyword>uint</keyword>\r
+               <keyword>ulong</keyword>\r
+               <keyword>unchecked</keyword>\r
+               <keyword>unsafe</keyword>\r
+               <keyword>ushort</keyword>\r
+               <keyword>using</keyword>\r
+               <keyword>virtual</keyword>\r
+               <keyword>void</keyword>\r
+               <keyword>volatile</keyword>\r
+               <keyword>while</keyword>\r
+       </highlighter>\r
+       <highlighter type="keywords">\r
+               <!-- special words, not really keywords -->\r
+               <keyword>add</keyword>\r
+               <keyword>alias</keyword>\r
+               <keyword>get</keyword>\r
+               <keyword>global</keyword>\r
+               <keyword>partial</keyword>\r
+               <keyword>remove</keyword>\r
+               <keyword>set</keyword>\r
+               <keyword>value</keyword>\r
+               <keyword>where</keyword>\r
+               <keyword>yield</keyword>\r
+       </highlighter>\r
+</highlighters>
\ No newline at end of file
index 3fab5c2ed771d6b37a47ea2fa4265231a38d5edc..d5b4d1a04e6d5719c3d0c09e5f69024dbeb8a264 100644 (file)
-<?xml version='1.0'?>
-<highlighters>
-
-<highlighter type='multiline-comment'>
-  <start>{</start>
-  <end>}</end>
-</highlighter>
-
-<highlighter type='multiline-comment'>
-  <start>(*</start>
-  <end>*)</end>
-</highlighter>
-
-<highlighter type='oneline-comment'>
-  //
-</highlighter>
-
-<highlighter type='string'>
-  <string>'</string>
-  <doubleEscapes/>
-</highlighter>
-
-<highlighter type='keywords'>
-
-  <!-- Reserved words -->
-  <keyword>and</keyword>
-  <keyword>else</keyword>
-  <keyword>inherited</keyword>
-  <keyword>packed</keyword>
-  <keyword>then</keyword>
-  <keyword>array</keyword>
-  <keyword>end</keyword>
-  <keyword>initialization</keyword>
-  <keyword>procedure</keyword>
-  <keyword>threadvar</keyword>
-  <keyword>as</keyword>
-  <keyword>except</keyword>
-  <keyword>inline</keyword>
-  <keyword>program</keyword>
-  <keyword>to</keyword>
-  <keyword>asm</keyword>
-  <keyword>exports</keyword>
-  <keyword>interface</keyword>
-  <keyword>property</keyword>
-  <keyword>try</keyword>
-  <keyword>begin</keyword>
-  <keyword>file</keyword>
-  <keyword>is</keyword>
-  <keyword>raise</keyword>
-  <keyword>type</keyword>
-  <keyword>case</keyword>
-  <keyword>final</keyword>
-  <keyword>label</keyword>
-  <keyword>record</keyword>
-  <keyword>unit</keyword>
-  <keyword>class</keyword>
-  <keyword>finalization</keyword>
-  <keyword>library</keyword>
-  <keyword>repeat</keyword>
-  <keyword>unsafe</keyword>
-  <keyword>const</keyword>
-  <keyword>finally</keyword>
-  <keyword>mod</keyword>
-  <keyword>resourcestring</keyword>
-  <keyword>until</keyword>
-  <keyword>constructor</keyword>
-  <keyword>for</keyword>
-  <keyword>nil</keyword>
-  <keyword>sealed</keyword>
-  <keyword>uses</keyword>
-  <keyword>destructor</keyword>
-  <keyword>function</keyword>
-  <keyword>not</keyword>
-  <keyword>set</keyword>
-  <keyword>var</keyword>
-  <keyword>dispinterface</keyword>
-  <keyword>goto</keyword>
-  <keyword>object</keyword>
-  <keyword>shl</keyword>
-  <keyword>while</keyword>
-  <keyword>div</keyword>
-  <keyword>if</keyword>
-  <keyword>of</keyword>
-  <keyword>shr</keyword>
-  <keyword>with</keyword>
-  <keyword>do</keyword>
-  <keyword>implementation</keyword>
-  <keyword>or</keyword>
-  <keyword>static</keyword>
-  <keyword>xor</keyword>
-  <keyword>downto</keyword>
-  <keyword>in</keyword>
-  <keyword>out</keyword>
-  <keyword>string</keyword>
-
-  <!-- Special meaning -->
-  <keyword>at</keyword>
-  <keyword>on</keyword>
-  
-  <!-- Directives -->
-  <keyword>absolute</keyword>
-  <keyword>dynamic</keyword>
-  <keyword>local</keyword>
-  <keyword>platform</keyword>
-  <keyword>requires</keyword>
-  <keyword>abstract</keyword>
-  <keyword>export</keyword>
-  <keyword>message</keyword>
-  <keyword>private</keyword>
-  <keyword>resident</keyword>
-  <keyword>assembler</keyword>
-  <keyword>external</keyword>
-  <keyword>name</keyword>
-  <keyword>protected</keyword>
-  <keyword>safecall</keyword>
-  <keyword>automated</keyword>
-  <keyword>far</keyword>
-  <keyword>near</keyword>
-  <keyword>public</keyword>
-  <keyword>stdcall</keyword>
-  <keyword>cdecl</keyword>
-  <keyword>forward</keyword>
-  <keyword>nodefault</keyword>
-  <keyword>published</keyword>
-  <keyword>stored</keyword>
-  <keyword>contains</keyword>
-  <keyword>implements</keyword>
-  <keyword>overload</keyword>
-  <keyword>read</keyword>
-  <keyword>varargs</keyword>
-  <keyword>default</keyword>
-  <keyword>index</keyword>
-  <keyword>override</keyword>
-  <keyword>readonly</keyword>
-  <keyword>virtual</keyword>
-  <keyword>deprecated</keyword>
-  <keyword>inline</keyword>
-  <keyword>package</keyword>
-  <keyword>register</keyword>
-  <keyword>write</keyword>
-  <keyword>dispid</keyword>
-  <keyword>library</keyword>
-  <keyword>pascal</keyword>
-  <keyword>reintroduce</keyword>
-  <keyword>writeonly</keyword>
-
-  <ignoreCase/>
-</highlighter>
-
-</highlighters>
-<!--
-
-Copyright (c) 2005 Michal Molhanec
-
-This software is provided 'as-is', without any express or implied
-warranty. In no event will the authors be held liable for any damages
-arising from the use of this software.
-
-Permission is granted to anyone to use this software for any purpose,
-including commercial applications, and to alter it and redistribute it
-freely, subject to the following restrictions:
-
-1. The origin of this software must not be misrepresented; you must
-   not claim that you wrote the original software. If you use this
-   software in a product, an acknowledgment in the product
-   documentation would be appreciated but is not required.
-
-2. Altered source versions must be plainly marked as such, and must
-   not be misrepresented as being the original software.
-
-3. This notice may not be removed or altered from any source
-   distribution.
-
--->
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+\r
+Syntax highlighting definition for Delphi (also suitable for Pascal)\r
+\r
+xslthl - XSLT Syntax Highlighting\r
+http://sourceforge.net/projects/xslthl/\r
+Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks\r
+\r
+This software is provided 'as-is', without any express or implied\r
+warranty.  In no event will the authors be held liable for any damages\r
+arising from the use of this software.\r
+\r
+Permission is granted to anyone to use this software for any purpose,\r
+including commercial applications, and to alter it and redistribute it\r
+freely, subject to the following restrictions:\r
+\r
+1. The origin of this software must not be misrepresented; you must not\r
+   claim that you wrote the original software. If you use this software\r
+   in a product, an acknowledgment in the product documentation would be\r
+   appreciated but is not required.\r
+2. Altered source versions must be plainly marked as such, and must not be\r
+   misrepresented as being the original software.\r
+3. This notice may not be removed or altered from any source distribution.\r
+\r
+Michal Molhanec <mol1111 at users.sourceforge.net>\r
+Jirka Kosek <kosek at users.sourceforge.net>\r
+Michiel Hendriks <elmuerte at users.sourceforge.net>\r
+\r
+-->\r
+<highlighters>\r
+       <highlighter type="multiline-comment">\r
+               <!-- multiline comments starting with an $ are directives -->\r
+               <start>{$</start>\r
+               <end>}</end>\r
+               <style>directive</style>\r
+       </highlighter>\r
+       <highlighter type="multiline-comment">\r
+               <!-- multiline comments starting with an $ are directives -->\r
+               <start>(*$</start>\r
+               <end>)</end>\r
+               <style>directive</style>\r
+       </highlighter>\r
+       <highlighter type="multiline-comment">\r
+               <start>{</start>\r
+               <end>}</end>\r
+       </highlighter>\r
+       <highlighter type="multiline-comment">\r
+               <start>(*</start>\r
+               <end>*)</end>\r
+       </highlighter>\r
+       <highlighter type="oneline-comment">//</highlighter>\r
+       <highlighter type="string">\r
+               <string>'</string>\r
+               <doubleEscapes />\r
+       </highlighter>\r
+       <highlighter type="hexnumber">\r
+               <prefix>#$</prefix>\r
+               <ignoreCase />\r
+               <style>string</style>           \r
+       </highlighter>\r
+       <highlighter type="number">\r
+               <prefix>#</prefix>\r
+               <ignoreCase />\r
+               <style>string</style>           \r
+       </highlighter>\r
+       <highlighter type="hexnumber">\r
+               <prefix>$</prefix>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="number">\r
+               <point>.</point>\r
+               <exponent>e</exponent>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="keywords">\r
+               <!-- Reserved words -->\r
+               <keyword>and</keyword>\r
+               <keyword>else</keyword>\r
+               <keyword>inherited</keyword>\r
+               <keyword>packed</keyword>\r
+               <keyword>then</keyword>\r
+               <keyword>array</keyword>\r
+               <keyword>end</keyword>\r
+               <keyword>initialization</keyword>\r
+               <keyword>procedure</keyword>\r
+               <keyword>threadvar</keyword>\r
+               <keyword>as</keyword>\r
+               <keyword>except</keyword>\r
+               <keyword>inline</keyword>\r
+               <keyword>program</keyword>\r
+               <keyword>to</keyword>\r
+               <keyword>asm</keyword>\r
+               <keyword>exports</keyword>\r
+               <keyword>interface</keyword>\r
+               <keyword>property</keyword>\r
+               <keyword>try</keyword>\r
+               <keyword>begin</keyword>\r
+               <keyword>file</keyword>\r
+               <keyword>is</keyword>\r
+               <keyword>raise</keyword>\r
+               <keyword>type</keyword>\r
+               <keyword>case</keyword>\r
+               <keyword>final</keyword>\r
+               <keyword>label</keyword>\r
+               <keyword>record</keyword>\r
+               <keyword>unit</keyword>\r
+               <keyword>class</keyword>\r
+               <keyword>finalization</keyword>\r
+               <keyword>library</keyword>\r
+               <keyword>repeat</keyword>\r
+               <keyword>unsafe</keyword>\r
+               <keyword>const</keyword>\r
+               <keyword>finally</keyword>\r
+               <keyword>mod</keyword>\r
+               <keyword>resourcestring</keyword>\r
+               <keyword>until</keyword>\r
+               <keyword>constructor</keyword>\r
+               <keyword>for</keyword>\r
+               <keyword>nil</keyword>\r
+               <keyword>sealed</keyword>\r
+               <keyword>uses</keyword>\r
+               <keyword>destructor</keyword>\r
+               <keyword>function</keyword>\r
+               <keyword>not</keyword>\r
+               <keyword>set</keyword>\r
+               <keyword>var</keyword>\r
+               <keyword>dispinterface</keyword>\r
+               <keyword>goto</keyword>\r
+               <keyword>object</keyword>\r
+               <keyword>shl</keyword>\r
+               <keyword>while</keyword>\r
+               <keyword>div</keyword>\r
+               <keyword>if</keyword>\r
+               <keyword>of</keyword>\r
+               <keyword>shr</keyword>\r
+               <keyword>with</keyword>\r
+               <keyword>do</keyword>\r
+               <keyword>implementation</keyword>\r
+               <keyword>or</keyword>\r
+               <keyword>static</keyword>\r
+               <keyword>xor</keyword>\r
+               <keyword>downto</keyword>\r
+               <keyword>in</keyword>\r
+               <keyword>out</keyword>\r
+               <keyword>string</keyword>\r
+\r
+               <!-- Special meaning -->\r
+               <keyword>at</keyword>\r
+               <keyword>on</keyword>\r
+  \r
+               <!-- Directives -->\r
+               <keyword>absolute</keyword>\r
+               <keyword>dynamic</keyword>\r
+               <keyword>local</keyword>\r
+               <keyword>platform</keyword>\r
+               <keyword>requires</keyword>\r
+               <keyword>abstract</keyword>\r
+               <keyword>export</keyword>\r
+               <keyword>message</keyword>\r
+               <keyword>private</keyword>\r
+               <keyword>resident</keyword>\r
+               <keyword>assembler</keyword>\r
+               <keyword>external</keyword>\r
+               <keyword>name</keyword>\r
+               <keyword>protected</keyword>\r
+               <keyword>safecall</keyword>\r
+               <keyword>automated</keyword>\r
+               <keyword>far</keyword>\r
+               <keyword>near</keyword>\r
+               <keyword>public</keyword>\r
+               <keyword>stdcall</keyword>\r
+               <keyword>cdecl</keyword>\r
+               <keyword>forward</keyword>\r
+               <keyword>nodefault</keyword>\r
+               <keyword>published</keyword>\r
+               <keyword>stored</keyword>\r
+               <keyword>contains</keyword>\r
+               <keyword>implements</keyword>\r
+               <keyword>overload</keyword>\r
+               <keyword>read</keyword>\r
+               <keyword>varargs</keyword>\r
+               <keyword>default</keyword>\r
+               <keyword>index</keyword>\r
+               <keyword>override</keyword>\r
+               <keyword>readonly</keyword>\r
+               <keyword>virtual</keyword>\r
+               <keyword>deprecated</keyword>\r
+               <keyword>inline</keyword>\r
+               <keyword>package</keyword>\r
+               <keyword>register</keyword>\r
+               <keyword>write</keyword>\r
+               <keyword>dispid</keyword>\r
+               <keyword>library</keyword>\r
+               <keyword>pascal</keyword>\r
+               <keyword>reintroduce</keyword>\r
+               <keyword>writeonly</keyword>\r
+               <ignoreCase />\r
+       </highlighter>\r
+</highlighters>
\ No newline at end of file
index dbebfa7de7714719cc7c3f89bda5e59bfd5f0d04..8a938f30641c7dbdb940efab1eada7ffec26a74e 100644 (file)
@@ -1,43 +1,45 @@
-<?xml version='1.0'?>
-<highlighters>
-
-<wholehighlighter type='regex'>
-  <pattern>(?m)(;.*)$</pattern>
-  <style>comment</style>
-</wholehighlighter>
-
-<wholehighlighter type='regex'>
-  <pattern>(?m)^(\[.+\]\s*)$</pattern>
-  <style>section</style>
-</wholehighlighter>
-
-<wholehighlighter type='regex'>
-  <pattern>(?m)^(.+=)</pattern>
-  <style>keyword</style>
-</wholehighlighter>
-
-</highlighters>
-<!--
-
-Copyright (c) 2005 Michal Molhanec
-
-This software is provided 'as-is', without any express or implied
-warranty. In no event will the authors be held liable for any damages
-arising from the use of this software.
-
-Permission is granted to anyone to use this software for any purpose,
-including commercial applications, and to alter it and redistribute it
-freely, subject to the following restrictions:
-
-1. The origin of this software must not be misrepresented; you must
-   not claim that you wrote the original software. If you use this
-   software in a product, an acknowledgment in the product
-   documentation would be appreciated but is not required.
-
-2. Altered source versions must be plainly marked as such, and must
-   not be misrepresented as being the original software.
-
-3. This notice may not be removed or altered from any source
-   distribution.
-
--->
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+\r
+Syntax highlighting definition for ini files\r
+\r
+xslthl - XSLT Syntax Highlighting\r
+http://sourceforge.net/projects/xslthl/\r
+Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks\r
+\r
+This software is provided 'as-is', without any express or implied\r
+warranty.  In no event will the authors be held liable for any damages\r
+arising from the use of this software.\r
+\r
+Permission is granted to anyone to use this software for any purpose,\r
+including commercial applications, and to alter it and redistribute it\r
+freely, subject to the following restrictions:\r
+\r
+1. The origin of this software must not be misrepresented; you must not\r
+   claim that you wrote the original software. If you use this software\r
+   in a product, an acknowledgment in the product documentation would be\r
+   appreciated but is not required.\r
+2. Altered source versions must be plainly marked as such, and must not be\r
+   misrepresented as being the original software.\r
+3. This notice may not be removed or altered from any source distribution.\r
+\r
+Michal Molhanec <mol1111 at users.sourceforge.net>\r
+Jirka Kosek <kosek at users.sourceforge.net>\r
+Michiel Hendriks <elmuerte at users.sourceforge.net>\r
+\r
+-->\r
+<highlighters>\r
+       <highlighter type="oneline-comment">;</highlighter>\r
+       <highlighter type="regex">      \r
+               <!-- ini sections -->\r
+               <pattern>^(\[.+\]\s*)$</pattern>\r
+               <style>keyword</style>\r
+               <flags>MULTILINE</flags>\r
+       </highlighter>\r
+       <highlighter type="regex">\r
+               <!-- the keys in an ini section -->\r
+               <pattern>^(.+)(?==)</pattern>\r
+               <style>attribute</style>\r
+               <flags>MULTILINE</flags>\r
+       </highlighter>\r
+</highlighters>
\ No newline at end of file
index 419b7cb8687dada3186a5df2dd37da00be29dcbc..672d518b48ffe1efd050911b5ae9747238fdf578 100644 (file)
-<?xml version='1.0'?>
-<highlighters>
-
-<highlighter type='multiline-comment'>
-  <start>/*</start>
-  <end>*/</end>
-</highlighter>
-
-<highlighter type='oneline-comment'>
-  //
-</highlighter>
-
-<highlighter type='string'>
-  <string>"</string>
-  <escape>\</escape>
-</highlighter>
-
-<highlighter type='string'>
-  <string>'</string>
-  <escape>\</escape>
-</highlighter>
-
-<highlighter type='keywords'>
-  <keyword>abstract</keyword>
-  <keyword>boolean</keyword>
-  <keyword>break</keyword>
-  <keyword>byte</keyword>
-  <keyword>case</keyword>
-  <keyword>catch</keyword>
-  <keyword>char</keyword>
-  <keyword>class</keyword>
-  <keyword>const</keyword>
-  <keyword>continue</keyword>
-  <keyword>default</keyword>
-  <keyword>do</keyword>
-  <keyword>double</keyword>
-  <keyword>else</keyword>
-  <keyword>extends</keyword>
-  <keyword>final</keyword>
-  <keyword>finally</keyword>
-  <keyword>float</keyword>
-  <keyword>for</keyword>
-  <keyword>goto</keyword>
-  <keyword>if</keyword>
-  <keyword>implements</keyword>
-  <keyword>import</keyword>
-  <keyword>instanceof</keyword>
-  <keyword>int</keyword>
-  <keyword>interface</keyword>
-  <keyword>long</keyword>
-  <keyword>native</keyword>
-  <keyword>new</keyword>
-  <keyword>package</keyword>
-  <keyword>private</keyword>
-  <keyword>protected</keyword>
-  <keyword>public</keyword>
-  <keyword>return</keyword>
-  <keyword>short</keyword>
-  <keyword>static</keyword>
-  <keyword>strictfp</keyword>
-  <keyword>super</keyword>
-  <keyword>switch</keyword>
-  <keyword>synchronized</keyword>
-  <keyword>this</keyword>
-  <keyword>throw</keyword>
-  <keyword>throws</keyword>
-  <keyword>transient</keyword>
-  <keyword>try</keyword>
-  <keyword>void</keyword>
-  <keyword>volatile</keyword>
-  <keyword>while</keyword>
-</highlighter>
-
-</highlighters>
-<!--
-
-Copyright (c) 2005 Michal Molhanec
-
-This software is provided 'as-is', without any express or implied
-warranty. In no event will the authors be held liable for any damages
-arising from the use of this software.
-
-Permission is granted to anyone to use this software for any purpose,
-including commercial applications, and to alter it and redistribute it
-freely, subject to the following restrictions:
-
-1. The origin of this software must not be misrepresented; you must
-   not claim that you wrote the original software. If you use this
-   software in a product, an acknowledgment in the product
-   documentation would be appreciated but is not required.
-
-2. Altered source versions must be plainly marked as such, and must
-   not be misrepresented as being the original software.
-
-3. This notice may not be removed or altered from any source
-   distribution.
-
--->
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+\r
+Syntax highlighting definition for Java\r
+\r
+xslthl - XSLT Syntax Highlighting\r
+http://sourceforge.net/projects/xslthl/\r
+Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks\r
+\r
+This software is provided 'as-is', without any express or implied\r
+warranty.  In no event will the authors be held liable for any damages\r
+arising from the use of this software.\r
+\r
+Permission is granted to anyone to use this software for any purpose,\r
+including commercial applications, and to alter it and redistribute it\r
+freely, subject to the following restrictions:\r
+\r
+1. The origin of this software must not be misrepresented; you must not\r
+   claim that you wrote the original software. If you use this software\r
+   in a product, an acknowledgment in the product documentation would be\r
+   appreciated but is not required.\r
+2. Altered source versions must be plainly marked as such, and must not be\r
+   misrepresented as being the original software.\r
+3. This notice may not be removed or altered from any source distribution.\r
+\r
+Michal Molhanec <mol1111 at users.sourceforge.net>\r
+Jirka Kosek <kosek at users.sourceforge.net>\r
+Michiel Hendriks <elmuerte at users.sourceforge.net>\r
+\r
+-->\r
+<highlighters>\r
+       <highlighter type="multiline-comment">\r
+               <start>/**</start>\r
+               <end>*/</end>\r
+               <style>doccomment</style>\r
+       </highlighter>\r
+       <highlighter type="multiline-comment">\r
+               <start>/*</start>\r
+               <end>*/</end>\r
+       </highlighter>\r
+       <highlighter type="oneline-comment">//</highlighter>\r
+       <highlighter type="string">\r
+               <string>"</string>\r
+               <escape>\</escape>\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>'</string>\r
+               <escape>\</escape>\r
+       </highlighter>\r
+       <highlighter type="annotation">\r
+               <start>@</start>\r
+               <valueStart>(</valueStart>\r
+               <valueEnd>)</valueEnd>\r
+       </highlighter>\r
+       <highlighter type="hexnumber">\r
+               <prefix>0x</prefix>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="number">\r
+               <point>.</point>\r
+               <exponent>e</exponent>\r
+               <suffix>f</suffix>\r
+               <suffix>d</suffix>\r
+               <suffix>l</suffix>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="keywords">\r
+               <keyword>abstract</keyword>\r
+               <keyword>boolean</keyword>\r
+               <keyword>break</keyword>\r
+               <keyword>byte</keyword>\r
+               <keyword>case</keyword>\r
+               <keyword>catch</keyword>\r
+               <keyword>char</keyword>\r
+               <keyword>class</keyword>\r
+               <keyword>const</keyword>\r
+               <keyword>continue</keyword>\r
+               <keyword>default</keyword>\r
+               <keyword>do</keyword>\r
+               <keyword>double</keyword>\r
+               <keyword>else</keyword>\r
+               <keyword>extends</keyword>\r
+               <keyword>final</keyword>\r
+               <keyword>finally</keyword>\r
+               <keyword>float</keyword>\r
+               <keyword>for</keyword>\r
+               <keyword>goto</keyword>\r
+               <keyword>if</keyword>\r
+               <keyword>implements</keyword>\r
+               <keyword>import</keyword>\r
+               <keyword>instanceof</keyword>\r
+               <keyword>int</keyword>\r
+               <keyword>interface</keyword>\r
+               <keyword>long</keyword>\r
+               <keyword>native</keyword>\r
+               <keyword>new</keyword>\r
+               <keyword>package</keyword>\r
+               <keyword>private</keyword>\r
+               <keyword>protected</keyword>\r
+               <keyword>public</keyword>\r
+               <keyword>return</keyword>\r
+               <keyword>short</keyword>\r
+               <keyword>static</keyword>\r
+               <keyword>strictfp</keyword>\r
+               <keyword>super</keyword>\r
+               <keyword>switch</keyword>\r
+               <keyword>synchronized</keyword>\r
+               <keyword>this</keyword>\r
+               <keyword>throw</keyword>\r
+               <keyword>throws</keyword>\r
+               <keyword>transient</keyword>\r
+               <keyword>try</keyword>\r
+               <keyword>void</keyword>\r
+               <keyword>volatile</keyword>\r
+               <keyword>while</keyword>\r
+       </highlighter>\r
+</highlighters>
\ No newline at end of file
diff --git a/xsl/highlighting/javascript-hl.xml b/xsl/highlighting/javascript-hl.xml
new file mode 100644 (file)
index 0000000..08c90ba
--- /dev/null
@@ -0,0 +1,147 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+\r
+Syntax highlighting definition for JavaScript\r
+\r
+xslthl - XSLT Syntax Highlighting\r
+http://sourceforge.net/projects/xslthl/\r
+Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks\r
+\r
+This software is provided 'as-is', without any express or implied\r
+warranty.  In no event will the authors be held liable for any damages\r
+arising from the use of this software.\r
+\r
+Permission is granted to anyone to use this software for any purpose,\r
+including commercial applications, and to alter it and redistribute it\r
+freely, subject to the following restrictions:\r
+\r
+1. The origin of this software must not be misrepresented; you must not\r
+   claim that you wrote the original software. If you use this software\r
+   in a product, an acknowledgment in the product documentation would be\r
+   appreciated but is not required.\r
+2. Altered source versions must be plainly marked as such, and must not be\r
+   misrepresented as being the original software.\r
+3. This notice may not be removed or altered from any source distribution.\r
+\r
+Michal Molhanec <mol1111 at users.sourceforge.net>\r
+Jirka Kosek <kosek at users.sourceforge.net>\r
+Michiel Hendriks <elmuerte at users.sourceforge.net>\r
+\r
+-->\r
+<highlighters>\r
+       <highlighter type="multiline-comment">\r
+               <start>/*</start>\r
+               <end>*/</end>\r
+       </highlighter>\r
+       <highlighter type="oneline-comment">//</highlighter>\r
+       <highlighter type="string">\r
+               <string>"</string>\r
+               <escape>\</escape>\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>'</string>\r
+               <escape>\</escape>\r
+       </highlighter>\r
+       <highlighter type="hexnumber">\r
+               <prefix>0x</prefix>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="number">\r
+               <point>.</point>\r
+               <exponent>e</exponent>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="keywords">\r
+               <keyword>break</keyword>\r
+               <keyword>case</keyword>\r
+               <keyword>catch</keyword>\r
+               <keyword>continue</keyword>\r
+               <keyword>default</keyword>\r
+               <keyword>delete</keyword>\r
+               <keyword>do</keyword>\r
+               <keyword>else</keyword>\r
+               <keyword>finally</keyword>\r
+               <keyword>for</keyword>\r
+               <keyword>function</keyword>\r
+               <keyword>if</keyword>\r
+               <keyword>in</keyword>\r
+               <keyword>instanceof</keyword>\r
+               <keyword>new</keyword>\r
+               <keyword>return</keyword>\r
+               <keyword>switch</keyword>\r
+               <keyword>this</keyword>\r
+               <keyword>throw</keyword>\r
+               <keyword>try</keyword>\r
+               <keyword>typeof</keyword>\r
+               <keyword>var</keyword>\r
+               <keyword>void</keyword>\r
+               <keyword>while</keyword>\r
+               <keyword>with</keyword>\r
+               <!-- future keywords -->\r
+               <keyword>abstract</keyword>\r
+               <keyword>boolean</keyword>\r
+               <keyword>byte</keyword>\r
+               <keyword>char</keyword>\r
+               <keyword>class</keyword>\r
+               <keyword>const</keyword>\r
+               <keyword>debugger</keyword>\r
+               <keyword>double</keyword>\r
+               <keyword>enum</keyword>\r
+               <keyword>export</keyword>\r
+               <keyword>extends</keyword>\r
+               <keyword>final</keyword>\r
+               <keyword>float</keyword>\r
+               <keyword>goto</keyword>\r
+               <keyword>implements</keyword>\r
+               <keyword>import</keyword>\r
+               <keyword>int</keyword>\r
+               <keyword>interface</keyword>\r
+               <keyword>long</keyword>\r
+               <keyword>native</keyword>\r
+               <keyword>package</keyword>\r
+               <keyword>private</keyword>\r
+               <keyword>protected</keyword>\r
+               <keyword>public</keyword>\r
+               <keyword>short</keyword>\r
+               <keyword>static</keyword>\r
+               <keyword>super</keyword>\r
+               <keyword>synchronized</keyword>\r
+               <keyword>throws</keyword>\r
+               <keyword>transient</keyword>\r
+               <keyword>volatile</keyword>\r
+       </highlighter>\r
+       <highlighter type="keywords">\r
+               <keyword>prototype</keyword>\r
+               <!-- Global Objects -->\r
+               <keyword>Array</keyword>\r
+               <keyword>Boolean</keyword>\r
+               <keyword>Date</keyword>\r
+               <keyword>Error</keyword>\r
+               <keyword>EvalError</keyword>\r
+               <keyword>Function</keyword>\r
+               <keyword>Math</keyword>\r
+               <keyword>Number</keyword>\r
+               <keyword>Object</keyword>\r
+               <keyword>RangeError</keyword>\r
+               <keyword>ReferenceError</keyword>\r
+               <keyword>RegExp</keyword>\r
+               <keyword>String</keyword>\r
+               <keyword>SyntaxError</keyword>\r
+               <keyword>TypeError</keyword>\r
+               <keyword>URIError</keyword>\r
+               <!-- Global functions -->\r
+               <keyword>decodeURI</keyword>\r
+               <keyword>decodeURIComponent</keyword>\r
+               <keyword>encodeURI</keyword>\r
+               <keyword>encodeURIComponent</keyword>\r
+               <keyword>eval</keyword>\r
+               <keyword>isFinite</keyword>\r
+               <keyword>isNaN</keyword>\r
+               <keyword>parseFloat</keyword>\r
+               <keyword>parseInt</keyword>\r
+               <!-- Global properties -->\r
+               <keyword>Infinity</keyword>\r
+               <keyword>NaN</keyword>\r
+               <keyword>undefined</keyword>\r
+       </highlighter>\r
+</highlighters>
\ No newline at end of file
index 2d2c7693b3ab82f65bc88fc776cc60620a20da00..b145f74443e81aece39ebbf77f37b1fd27946046 100644 (file)
@@ -1,86 +1,90 @@
-<?xml version='1.0'?>
-<highlighters>
-
-<highlighter type='nested-multiline-comment'>
-  <start>(*</start>
-  <end>*)</end>
-</highlighter>
-
-<highlighter type='string'>
-  <string>"</string>
-</highlighter>
-
-<highlighter type='string'>
-  <string>'</string>
-</highlighter>
-
-<highlighter type='keywords'>
-  <keyword>and</keyword>
-  <keyword>array</keyword>
-  <keyword>begin</keyword>
-  <keyword>by</keyword>
-  <keyword>case</keyword>
-  <keyword>const</keyword>
-  <keyword>definition</keyword>
-  <keyword>div</keyword>
-  <keyword>do</keyword>
-  <keyword>else</keyword>
-  <keyword>elsif</keyword>
-  <keyword>end</keyword>
-  <keyword>exit</keyword>
-  <keyword>export</keyword>
-  <keyword>for</keyword>
-  <keyword>from</keyword>
-  <keyword>if</keyword>
-  <keyword>implementation</keyword>
-  <keyword>import</keyword>
-  <keyword>in</keyword>
-  <keyword>loop</keyword>
-  <keyword>mod</keyword>
-  <keyword>module</keyword>
-  <keyword>not</keyword>
-  <keyword>of</keyword>
-  <keyword>or</keyword>
-  <keyword>pointer</keyword>
-  <keyword>procedure</keyword>
-  <keyword>qualified</keyword>
-  <keyword>record</keyword>
-  <keyword>repeat</keyword>
-  <keyword>return</keyword>
-  <keyword>set</keyword>
-  <keyword>then</keyword>
-  <keyword>to</keyword>
-  <keyword>type</keyword>
-  <keyword>until</keyword>
-  <keyword>var</keyword>
-  <keyword>while</keyword>
-  <keyword>with</keyword>
-  
-  <ignoreCase/>
-</highlighter>
-
-</highlighters>
-<!--
-
-Copyright (c) 2005 Michal Molhanec
-
-This software is provided 'as-is', without any express or implied
-warranty. In no event will the authors be held liable for any damages
-arising from the use of this software.
-
-Permission is granted to anyone to use this software for any purpose,
-including commercial applications, and to alter it and redistribute it
-freely, subject to the following restrictions:
-
-1. The origin of this software must not be misrepresented; you must
-   not claim that you wrote the original software. If you use this
-   software in a product, an acknowledgment in the product
-   documentation would be appreciated but is not required.
-
-2. Altered source versions must be plainly marked as such, and must
-   not be misrepresented as being the original software.
-
-3. This notice may not be removed or altered from any source
-   distribution.
-
--->
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+\r
+Syntax highlighting definition for Modulo-2\r
+\r
+xslthl - XSLT Syntax Highlighting\r
+http://sourceforge.net/projects/xslthl/\r
+Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks\r
+\r
+This software is provided 'as-is', without any express or implied\r
+warranty.  In no event will the authors be held liable for any damages\r
+arising from the use of this software.\r
+\r
+Permission is granted to anyone to use this software for any purpose,\r
+including commercial applications, and to alter it and redistribute it\r
+freely, subject to the following restrictions:\r
+\r
+1. The origin of this software must not be misrepresented; you must not\r
+   claim that you wrote the original software. If you use this software\r
+   in a product, an acknowledgment in the product documentation would be\r
+   appreciated but is not required.\r
+2. Altered source versions must be plainly marked as such, and must not be\r
+   misrepresented as being the original software.\r
+3. This notice may not be removed or altered from any source distribution.\r
+\r
+Michal Molhanec <mol1111 at users.sourceforge.net>\r
+Jirka Kosek <kosek at users.sourceforge.net>\r
+Michiel Hendriks <elmuerte at users.sourceforge.net>\r
+\r
+-->\r
+<highlighters>\r
+       <highlighter type="nested-multiline-comment">\r
+               <start>(*</start>\r
+               <end>*)</end>\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>"</string>\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>'</string>\r
+       </highlighter>\r
+       <highlighter type="number">\r
+               <point>.</point>\r
+               <exponent>e</exponent>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="keywords">\r
+               <keyword>and</keyword>\r
+               <keyword>array</keyword>\r
+               <keyword>begin</keyword>\r
+               <keyword>by</keyword>\r
+               <keyword>case</keyword>\r
+               <keyword>const</keyword>\r
+               <keyword>definition</keyword>\r
+               <keyword>div</keyword>\r
+               <keyword>do</keyword>\r
+               <keyword>else</keyword>\r
+               <keyword>elsif</keyword>\r
+               <keyword>end</keyword>\r
+               <keyword>exit</keyword>\r
+               <keyword>export</keyword>\r
+               <keyword>for</keyword>\r
+               <keyword>from</keyword>\r
+               <keyword>if</keyword>\r
+               <keyword>implementation</keyword>\r
+               <keyword>import</keyword>\r
+               <keyword>in</keyword>\r
+               <keyword>loop</keyword>\r
+               <keyword>mod</keyword>\r
+               <keyword>module</keyword>\r
+               <keyword>not</keyword>\r
+               <keyword>of</keyword>\r
+               <keyword>or</keyword>\r
+               <keyword>pointer</keyword>\r
+               <keyword>procedure</keyword>\r
+               <keyword>qualified</keyword>\r
+               <keyword>record</keyword>\r
+               <keyword>repeat</keyword>\r
+               <keyword>return</keyword>\r
+               <keyword>set</keyword>\r
+               <keyword>then</keyword>\r
+               <keyword>to</keyword>\r
+               <keyword>type</keyword>\r
+               <keyword>until</keyword>\r
+               <keyword>var</keyword>\r
+               <keyword>while</keyword>\r
+               <keyword>with</keyword>\r
+               <ignoreCase />\r
+       </highlighter>\r
+</highlighters>
\ No newline at end of file
index 495d4e8759ff87ed05be0f2bb3f88cffc6cfb55f..afa4be712e61ff698d58bbb050a67a706c3d9b4b 100644 (file)
-<?xml version='1.0'?>
-<highlighters>
-
-<wholehighlighter type='xml'>
-  <elementSet>
-    <style>html</style>
-    <element>A</element>
-    <element>ABBR</element>
-    <element>ACRONYM</element>
-    <element>ADDRESS</element>
-    <element>APPLET</element>
-    <element>AREA</element>
-    <element>B</element>
-    <element>BASE</element>
-    <element>BASEFONT</element>
-    <element>BDO</element>
-    <element>BIG</element>
-    <element>BLOCKQUOTE</element>
-    <element>BODY</element>
-    <element>BR</element>
-    <element>BUTTON</element>
-    <element>CAPTION</element>
-    <element>CENTER</element>
-    <element>CITE</element>
-    <element>CODE</element>
-    <element>COL</element>
-    <element>COLGROUP</element>
-    <element>DD</element>
-    <element>DEL</element>
-    <element>DFN</element>
-    <element>DIR</element>
-    <element>DIV</element>
-    <element>DL</element>
-    <element>DT</element>
-    <element>EM</element>
-    <element>FIELDSET</element>
-    <element>FONT</element>
-    <element>FORM</element>
-    <element>FRAME</element>
-    <element>FRAMESET</element>
-    <element>H1</element>
-    <element>H2</element>
-    <element>H3</element>
-    <element>H4</element>
-    <element>H5</element>
-    <element>H6</element>
-    <element>HEAD</element>
-    <element>HR</element>
-    <element>HTML</element>
-    <element>I</element>
-    <element>IFRAME</element>
-    <element>IMG</element>
-    <element>INPUT</element>
-    <element>INS</element>
-    <element>ISINDEX</element>
-    <element>KBD</element>
-    <element>LABEL</element>
-    <element>LEGEND</element>
-    <element>LI</element>
-    <element>LINK</element>
-    <element>MAP</element>
-    <element>MENU</element>
-    <element>META</element>
-    <element>NOFRAMES</element>
-    <element>NOSCRIPT</element>
-    <element>OBJECT</element>
-    <element>OL</element>
-    <element>OPTGROUP</element>
-    <element>OPTION</element>
-    <element>P</element>
-    <element>PARAM</element>
-    <element>PRE</element>
-    <element>Q</element>
-    <element>S</element>
-    <element>SAMP</element>
-    <element>SCRIPT</element>
-    <element>SELECT</element>
-    <element>SMALL</element>
-    <element>SPAN</element>
-    <element>STRIKE</element>
-    <element>STRONG</element>
-    <element>STYLE</element>
-    <element>SUB</element>
-    <element>SUP</element>
-    <element>TABLE</element>
-    <element>TBODY</element>
-    <element>TD</element>
-    <element>TEXTAREA</element>
-    <element>TFOOT</element>
-    <element>TH</element>
-    <element>THEAD</element>
-    <element>TITLE</element>
-    <element>TR</element>
-    <element>TT</element>
-    <element>U</element>
-    <element>UL</element>
-    <element>VAR</element>
-    <element>XMP</element>
-    <ignoreCase/>
-  </elementSet>
-  <elementPrefix>
-    <style>xslt</style>
-    <prefix>xsl:</prefix>
-  </elementPrefix>
-</wholehighlighter>
-
-</highlighters>
-<!--
-
-Copyright (c) 2005 Michal Molhanec
-
-This software is provided 'as-is', without any express or implied
-warranty. In no event will the authors be held liable for any damages
-arising from the use of this software.
-
-Permission is granted to anyone to use this software for any purpose,
-including commercial applications, and to alter it and redistribute it
-freely, subject to the following restrictions:
-
-1. The origin of this software must not be misrepresented; you must
-   not claim that you wrote the original software. If you use this
-   software in a product, an acknowledgment in the product
-   documentation would be appreciated but is not required.
-
-2. Altered source versions must be plainly marked as such, and must
-   not be misrepresented as being the original software.
-
-3. This notice may not be removed or altered from any source
-   distribution.
-
--->
+<?xml version='1.0'?>\r
+<!--\r
+\r
+  Bakalarska prace: Zvyraznovani syntaxe v XSLT\r
+  Michal Molhanec 2005\r
+\r
+  myxml-hl.xml - konfigurace zvyraznovace XML, ktera zvlast zvyrazni\r
+                 HTML elementy a XSL elementy\r
+\r
+-->\r
+<highlighters>\r
+\r
+<wholehighlighter type='xml'>\r
+  <elementSet>\r
+    <style>html</style>\r
+    <element>A</element>\r
+    <element>ABBR</element>\r
+    <element>ACRONYM</element>\r
+    <element>ADDRESS</element>\r
+    <element>APPLET</element>\r
+    <element>AREA</element>\r
+    <element>B</element>\r
+    <element>BASE</element>\r
+    <element>BASEFONT</element>\r
+    <element>BDO</element>\r
+    <element>BIG</element>\r
+    <element>BLOCKQUOTE</element>\r
+    <element>BODY</element>\r
+    <element>BR</element>\r
+    <element>BUTTON</element>\r
+    <element>CAPTION</element>\r
+    <element>CENTER</element>\r
+    <element>CITE</element>\r
+    <element>CODE</element>\r
+    <element>COL</element>\r
+    <element>COLGROUP</element>\r
+    <element>DD</element>\r
+    <element>DEL</element>\r
+    <element>DFN</element>\r
+    <element>DIR</element>\r
+    <element>DIV</element>\r
+    <element>DL</element>\r
+    <element>DT</element>\r
+    <element>EM</element>\r
+    <element>FIELDSET</element>\r
+    <element>FONT</element>\r
+    <element>FORM</element>\r
+    <element>FRAME</element>\r
+    <element>FRAMESET</element>\r
+    <element>H1</element>\r
+    <element>H2</element>\r
+    <element>H3</element>\r
+    <element>H4</element>\r
+    <element>H5</element>\r
+    <element>H6</element>\r
+    <element>HEAD</element>\r
+    <element>HR</element>\r
+    <element>HTML</element>\r
+    <element>I</element>\r
+    <element>IFRAME</element>\r
+    <element>IMG</element>\r
+    <element>INPUT</element>\r
+    <element>INS</element>\r
+    <element>ISINDEX</element>\r
+    <element>KBD</element>\r
+    <element>LABEL</element>\r
+    <element>LEGEND</element>\r
+    <element>LI</element>\r
+    <element>LINK</element>\r
+    <element>MAP</element>\r
+    <element>MENU</element>\r
+    <element>META</element>\r
+    <element>NOFRAMES</element>\r
+    <element>NOSCRIPT</element>\r
+    <element>OBJECT</element>\r
+    <element>OL</element>\r
+    <element>OPTGROUP</element>\r
+    <element>OPTION</element>\r
+    <element>P</element>\r
+    <element>PARAM</element>\r
+    <element>PRE</element>\r
+    <element>Q</element>\r
+    <element>S</element>\r
+    <element>SAMP</element>\r
+    <element>SCRIPT</element>\r
+    <element>SELECT</element>\r
+    <element>SMALL</element>\r
+    <element>SPAN</element>\r
+    <element>STRIKE</element>\r
+    <element>STRONG</element>\r
+    <element>STYLE</element>\r
+    <element>SUB</element>\r
+    <element>SUP</element>\r
+    <element>TABLE</element>\r
+    <element>TBODY</element>\r
+    <element>TD</element>\r
+    <element>TEXTAREA</element>\r
+    <element>TFOOT</element>\r
+    <element>TH</element>\r
+    <element>THEAD</element>\r
+    <element>TITLE</element>\r
+    <element>TR</element>\r
+    <element>TT</element>\r
+    <element>U</element>\r
+    <element>UL</element>\r
+    <element>VAR</element>\r
+    <element>XMP</element>\r
+    <ignoreCase/>\r
+  </elementSet>\r
+  <elementPrefix>\r
+    <style>xslt</style>\r
+    <prefix>xsl:</prefix>\r
+  </elementPrefix>\r
+</wholehighlighter>\r
+\r
+</highlighters>
\ No newline at end of file
diff --git a/xsl/highlighting/perl-hl.xml b/xsl/highlighting/perl-hl.xml
new file mode 100644 (file)
index 0000000..da1924a
--- /dev/null
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+\r
+Syntax highlighting definition for Perl\r
+\r
+xslthl - XSLT Syntax Highlighting\r
+http://sourceforge.net/projects/xslthl/\r
+Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks\r
+\r
+This software is provided 'as-is', without any express or implied\r
+warranty.  In no event will the authors be held liable for any damages\r
+arising from the use of this software.\r
+\r
+Permission is granted to anyone to use this software for any purpose,\r
+including commercial applications, and to alter it and redistribute it\r
+freely, subject to the following restrictions:\r
+\r
+1. The origin of this software must not be misrepresented; you must not\r
+   claim that you wrote the original software. If you use this software\r
+   in a product, an acknowledgment in the product documentation would be\r
+   appreciated but is not required.\r
+2. Altered source versions must be plainly marked as such, and must not be\r
+   misrepresented as being the original software.\r
+3. This notice may not be removed or altered from any source distribution.\r
+\r
+Michal Molhanec <mol1111 at users.sourceforge.net>\r
+Jirka Kosek <kosek at users.sourceforge.net>\r
+Michiel Hendriks <elmuerte at users.sourceforge.net>\r
+\r
+-->\r
+<highlighters>\r
+       <highlighter type="oneline-comment">#</highlighter>\r
+       <highlighter type="heredoc">\r
+               <start>&lt;&lt;</start>\r
+               <quote>'</quote>\r
+               <quote>"</quote>\r
+               <noWhiteSpace/>\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>"</string>\r
+               <escape>\</escape>\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>'</string>\r
+               <escape>\</escape>\r
+               <spanNewLines/>\r
+       </highlighter>\r
+       <highlighter type="hexnumber">\r
+               <prefix>0x</prefix>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="number">\r
+               <point>.</point>\r
+               <pointStarts />\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="keywords">\r
+               <keyword>if</keyword>\r
+               <keyword>unless</keyword>\r
+               <keyword>while</keyword>\r
+               <keyword>until</keyword>\r
+               <keyword>foreach</keyword>\r
+               <keyword>else</keyword>\r
+               <keyword>elsif</keyword>\r
+               <keyword>for</keyword>\r
+               <keyword>when</keyword>\r
+               <keyword>default</keyword>\r
+               <keyword>given</keyword>\r
+               <!-- Keywords related to the control flow of your perl program  -->\r
+               <keyword>caller</keyword>\r
+               <keyword>continue</keyword> \r
+               <keyword>die</keyword>\r
+               <keyword>do</keyword>\r
+               <keyword>dump</keyword>\r
+               <keyword>eval</keyword>\r
+               <keyword>exit</keyword>\r
+               <keyword>goto</keyword>\r
+               <keyword>last</keyword>\r
+               <keyword>next</keyword>\r
+               <keyword>redo</keyword>\r
+               <keyword>return</keyword>\r
+               <keyword>sub</keyword>\r
+               <keyword>wantarray</keyword>\r
+               <!-- Keywords related to scoping  -->\r
+               <keyword>caller</keyword>\r
+               <keyword>import</keyword>\r
+               <keyword>local</keyword>\r
+               <keyword>my</keyword>\r
+               <keyword>package</keyword>\r
+               <keyword>use</keyword>\r
+               <!-- Keywords related to perl modules  -->\r
+               <keyword>do</keyword>\r
+               <keyword>import</keyword>\r
+               <keyword>no</keyword>\r
+               <keyword>package</keyword>\r
+               <keyword>require</keyword>\r
+               <keyword>use</keyword>\r
+               <!-- Keywords related to classes and object-orientedness  -->\r
+               <keyword>bless</keyword>\r
+               <keyword>dbmclose</keyword>\r
+               <keyword>dbmopen</keyword>\r
+               <keyword>package</keyword>\r
+               <keyword>ref</keyword>\r
+               <keyword>tie</keyword>\r
+               <keyword>tied</keyword>\r
+               <keyword>untie</keyword>\r
+               <keyword>use</keyword>\r
+               <!-- operators -->\r
+               <keyword>and</keyword>\r
+               <keyword>or</keyword>\r
+               <keyword>not</keyword>\r
+               <keyword>eq</keyword>\r
+               <keyword>ne</keyword>\r
+               <keyword>lt</keyword>\r
+               <keyword>gt</keyword>\r
+               <keyword>le</keyword>\r
+               <keyword>ge</keyword>\r
+               <keyword>cmp</keyword>\r
+       </highlighter>\r
+</highlighters>
\ No newline at end of file
index 7cd0d6a72f0105d0e19d3bd08442604331e6fe79..4a70225201a2a980cc770b7c839fa734bd21e6b1 100644 (file)
-<?xml version='1.0'?>
-<highlighters>
-
-<highlighter type='multiline-comment'>
-  <start>/*</start>
-  <end>*/</end>
-</highlighter>
-
-<highlighter type='oneline-comment'>
-  //
-</highlighter>
-
-<highlighter type='oneline-comment'>
-  #
-</highlighter>
-
-<highlighter type='string'>
-  <string>"</string>
-  <escape>\</escape>
-</highlighter>
-
-<highlighter type='string'>
-  <string>'</string>
-  <escape>\</escape>
-</highlighter>
-
-<highlighter type='heredoc'>
-  <start>&lt;&lt;&lt;</start>
-</highlighter>
-
-<highlighter type='keywords'>
-  <keyword>and</keyword>
-  <keyword>or</keyword>
-  <keyword>xor</keyword>
-  <keyword>__FILE__</keyword>
-  <keyword>exception</keyword>
-  <keyword>__LINE__</keyword>
-  <keyword>array</keyword>
-  <keyword>as</keyword>
-  <keyword>break</keyword>
-  <keyword>case</keyword>
-  <keyword>class</keyword>
-  <keyword>const</keyword>
-  <keyword>continue</keyword>
-  <keyword>declare</keyword>
-  <keyword>default</keyword>
-  <keyword>die</keyword>
-  <keyword>do</keyword>
-  <keyword>echo</keyword>
-  <keyword>else</keyword>
-  <keyword>elseif</keyword>
-  <keyword>empty</keyword>
-  <keyword>enddeclare</keyword>
-  <keyword>endfor</keyword>
-  <keyword>endforeach</keyword>
-  <keyword>endif</keyword>
-  <keyword>endswitch</keyword>
-  <keyword>endwhile</keyword>
-  <keyword>eval</keyword>
-  <keyword>exit</keyword>
-  <keyword>extends</keyword>
-  <keyword>for</keyword>
-  <keyword>foreach</keyword>
-  <keyword>function</keyword>
-  <keyword>global</keyword>
-  <keyword>if</keyword>
-  <keyword>include</keyword>
-  <keyword>include_once</keyword>
-  <keyword>isset</keyword>
-  <keyword>list</keyword>
-  <keyword>new</keyword>
-  <keyword>print</keyword>
-  <keyword>require</keyword>
-  <keyword>require_once</keyword>
-  <keyword>return</keyword>
-  <keyword>static</keyword>
-  <keyword>switch</keyword>
-  <keyword>unset</keyword>
-  <keyword>use</keyword>
-  <keyword>var</keyword>
-  <keyword>while</keyword>
-  <keyword>__FUNCTION__</keyword>
-  <keyword>__CLASS__</keyword>
-  <keyword>__METHOD__</keyword>
-  <keyword>final</keyword>
-  <keyword>php_user_filter</keyword>
-  <keyword>interface</keyword>
-  <keyword>implements</keyword>
-  <keyword>extends</keyword>
-  <keyword>public</keyword>
-  <keyword>private</keyword>
-  <keyword>protected</keyword>
-  <keyword>abstract</keyword>
-  <keyword>clone</keyword>
-  <keyword>try</keyword>
-  <keyword>catch</keyword>
-  <keyword>throw</keyword>
-  <keyword>cfunction</keyword>
-  <keyword>old_function</keyword>
-  <ignoreCase/>
-</highlighter>
-
-</highlighters>
-<!--
-
-Copyright (c) 2005 Michal Molhanec
-
-This software is provided 'as-is', without any express or implied
-warranty. In no event will the authors be held liable for any damages
-arising from the use of this software.
-
-Permission is granted to anyone to use this software for any purpose,
-including commercial applications, and to alter it and redistribute it
-freely, subject to the following restrictions:
-
-1. The origin of this software must not be misrepresented; you must
-   not claim that you wrote the original software. If you use this
-   software in a product, an acknowledgment in the product
-   documentation would be appreciated but is not required.
-
-2. Altered source versions must be plainly marked as such, and must
-   not be misrepresented as being the original software.
-
-3. This notice may not be removed or altered from any source
-   distribution.
-
--->
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+\r
+Syntax highlighting definition for PHP\r
+\r
+xslthl - XSLT Syntax Highlighting\r
+http://sourceforge.net/projects/xslthl/\r
+Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks\r
+\r
+This software is provided 'as-is', without any express or implied\r
+warranty.  In no event will the authors be held liable for any damages\r
+arising from the use of this software.\r
+\r
+Permission is granted to anyone to use this software for any purpose,\r
+including commercial applications, and to alter it and redistribute it\r
+freely, subject to the following restrictions:\r
+\r
+1. The origin of this software must not be misrepresented; you must not\r
+   claim that you wrote the original software. If you use this software\r
+   in a product, an acknowledgment in the product documentation would be\r
+   appreciated but is not required.\r
+2. Altered source versions must be plainly marked as such, and must not be\r
+   misrepresented as being the original software.\r
+3. This notice may not be removed or altered from any source distribution.\r
+\r
+Michal Molhanec <mol1111 at users.sourceforge.net>\r
+Jirka Kosek <kosek at users.sourceforge.net>\r
+Michiel Hendriks <elmuerte at users.sourceforge.net>\r
+\r
+-->\r
+<highlighters>\r
+       <highlighter type="multiline-comment">\r
+               <start>/**</start>\r
+               <end>*/</end>\r
+               <style>doccomment</style>\r
+       </highlighter>\r
+       <highlighter type="oneline-comment">\r
+               <start>///</start>\r
+               <style>doccomment</style>\r
+       </highlighter>\r
+       <highlighter type="multiline-comment">\r
+               <start>/*</start>\r
+               <end>*/</end>\r
+       </highlighter>\r
+       <highlighter type="oneline-comment">//</highlighter>\r
+       <highlighter type="oneline-comment">#</highlighter>\r
+       <highlighter type="string">\r
+               <string>"</string>\r
+               <escape>\</escape>\r
+               <spanNewLines />\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>'</string>\r
+               <escape>\</escape>\r
+               <spanNewLines />\r
+       </highlighter>\r
+       <highlighter type="heredoc">\r
+               <start>&lt;&lt;&lt;</start>\r
+       </highlighter>\r
+       <highlighter type="hexnumber">\r
+               <prefix>0x</prefix>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="number">\r
+               <point>.</point>\r
+               <exponent>e</exponent>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="keywords">\r
+               <keyword>and</keyword>\r
+               <keyword>or</keyword>\r
+               <keyword>xor</keyword>\r
+               <keyword>__FILE__</keyword>\r
+               <keyword>exception</keyword>\r
+               <keyword>__LINE__</keyword>\r
+               <keyword>array</keyword>\r
+               <keyword>as</keyword>\r
+               <keyword>break</keyword>\r
+               <keyword>case</keyword>\r
+               <keyword>class</keyword>\r
+               <keyword>const</keyword>\r
+               <keyword>continue</keyword>\r
+               <keyword>declare</keyword>\r
+               <keyword>default</keyword>\r
+               <keyword>die</keyword>\r
+               <keyword>do</keyword>\r
+               <keyword>echo</keyword>\r
+               <keyword>else</keyword>\r
+               <keyword>elseif</keyword>\r
+               <keyword>empty</keyword>\r
+               <keyword>enddeclare</keyword>\r
+               <keyword>endfor</keyword>\r
+               <keyword>endforeach</keyword>\r
+               <keyword>endif</keyword>\r
+               <keyword>endswitch</keyword>\r
+               <keyword>endwhile</keyword>\r
+               <keyword>eval</keyword>\r
+               <keyword>exit</keyword>\r
+               <keyword>extends</keyword>\r
+               <keyword>for</keyword>\r
+               <keyword>foreach</keyword>\r
+               <keyword>function</keyword>\r
+               <keyword>global</keyword>\r
+               <keyword>if</keyword>\r
+               <keyword>include</keyword>\r
+               <keyword>include_once</keyword>\r
+               <keyword>isset</keyword>\r
+               <keyword>list</keyword>\r
+               <keyword>new</keyword>\r
+               <keyword>print</keyword>\r
+               <keyword>require</keyword>\r
+               <keyword>require_once</keyword>\r
+               <keyword>return</keyword>\r
+               <keyword>static</keyword>\r
+               <keyword>switch</keyword>\r
+               <keyword>unset</keyword>\r
+               <keyword>use</keyword>\r
+               <keyword>var</keyword>\r
+               <keyword>while</keyword>\r
+               <keyword>__FUNCTION__</keyword>\r
+               <keyword>__CLASS__</keyword>\r
+               <keyword>__METHOD__</keyword>\r
+               <keyword>final</keyword>\r
+               <keyword>php_user_filter</keyword>\r
+               <keyword>interface</keyword>\r
+               <keyword>implements</keyword>\r
+               <keyword>extends</keyword>\r
+               <keyword>public</keyword>\r
+               <keyword>private</keyword>\r
+               <keyword>protected</keyword>\r
+               <keyword>abstract</keyword>\r
+               <keyword>clone</keyword>\r
+               <keyword>try</keyword>\r
+               <keyword>catch</keyword>\r
+               <keyword>throw</keyword>\r
+               <keyword>cfunction</keyword>\r
+               <keyword>old_function</keyword>\r
+               <keyword>true</keyword>\r
+               <keyword>false</keyword>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="word">\r
+               <!-- highlight the php open and close tags as directives -->\r
+               <word>?&gt;</word>\r
+               <word>&lt;?php</word>\r
+               <word>&lt;?=</word>\r
+               <style>directive</style>\r
+       </highlighter>\r
+</highlighters>
\ No newline at end of file
diff --git a/xsl/highlighting/python-hl.xml b/xsl/highlighting/python-hl.xml
new file mode 100644 (file)
index 0000000..791bc7a
--- /dev/null
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+\r
+Syntax highlighting definition for Python\r
+\r
+xslthl - XSLT Syntax Highlighting\r
+http://sourceforge.net/projects/xslthl/\r
+Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks\r
+\r
+This software is provided 'as-is', without any express or implied\r
+warranty.  In no event will the authors be held liable for any damages\r
+arising from the use of this software.\r
+\r
+Permission is granted to anyone to use this software for any purpose,\r
+including commercial applications, and to alter it and redistribute it\r
+freely, subject to the following restrictions:\r
+\r
+1. The origin of this software must not be misrepresented; you must not\r
+   claim that you wrote the original software. If you use this software\r
+   in a product, an acknowledgment in the product documentation would be\r
+   appreciated but is not required.\r
+2. Altered source versions must be plainly marked as such, and must not be\r
+   misrepresented as being the original software.\r
+3. This notice may not be removed or altered from any source distribution.\r
+\r
+Michal Molhanec <mol1111 at users.sourceforge.net>\r
+Jirka Kosek <kosek at users.sourceforge.net>\r
+Michiel Hendriks <elmuerte at users.sourceforge.net>\r
+\r
+-->\r
+<highlighters>\r
+       <highlighter type="annotation">\r
+               <!-- these are actually called decorators -->\r
+               <start>@</start>\r
+               <valueStart>(</valueStart>\r
+               <valueEnd>)</valueEnd>\r
+       </highlighter>\r
+       <highlighter type="oneline-comment">#</highlighter>\r
+       <highlighter type="string">\r
+               <string>"""</string>\r
+               <spanNewLines />\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>'''</string>\r
+               <spanNewLines />\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>"</string>\r
+               <escape>\</escape>\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>'</string>\r
+               <escape>\</escape>\r
+       </highlighter>\r
+       <highlighter type="hexnumber">\r
+               <prefix>0x</prefix>\r
+               <suffix>l</suffix>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="number">\r
+               <point>.</point>\r
+               <pointStarts />\r
+               <exponent>e</exponent>\r
+               <suffix>l</suffix>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="keywords">\r
+               <keyword>and</keyword>\r
+               <keyword>del</keyword>\r
+               <keyword>from</keyword>\r
+               <keyword>not</keyword>\r
+               <keyword>while</keyword>\r
+               <keyword>as</keyword>\r
+               <keyword>elif</keyword>\r
+               <keyword>global</keyword>\r
+               <keyword>or</keyword>\r
+               <keyword>with</keyword>\r
+               <keyword>assert</keyword>\r
+               <keyword>else</keyword>\r
+               <keyword>if</keyword>\r
+               <keyword>pass</keyword>\r
+               <keyword>yield</keyword>\r
+               <keyword>break</keyword>\r
+               <keyword>except</keyword>\r
+               <keyword>import</keyword>\r
+               <keyword>print</keyword>\r
+               <keyword>class</keyword>\r
+               <keyword>exec</keyword>\r
+               <keyword>in</keyword>\r
+               <keyword>raise</keyword>\r
+               <keyword>continue</keyword>\r
+               <keyword>finally</keyword>\r
+               <keyword>is</keyword>\r
+               <keyword>return</keyword>\r
+               <keyword>def</keyword>\r
+               <keyword>for</keyword>\r
+               <keyword>lambda</keyword>\r
+               <keyword>try</keyword>\r
+       </highlighter>\r
+</highlighters>
\ No newline at end of file
diff --git a/xsl/highlighting/ruby-hl.xml b/xsl/highlighting/ruby-hl.xml
new file mode 100644 (file)
index 0000000..78189b0
--- /dev/null
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+\r
+Syntax highlighting definition for Ruby\r
+\r
+xslthl - XSLT Syntax Highlighting\r
+http://sourceforge.net/projects/xslthl/\r
+Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks\r
+\r
+This software is provided 'as-is', without any express or implied\r
+warranty.  In no event will the authors be held liable for any damages\r
+arising from the use of this software.\r
+\r
+Permission is granted to anyone to use this software for any purpose,\r
+including commercial applications, and to alter it and redistribute it\r
+freely, subject to the following restrictions:\r
+\r
+1. The origin of this software must not be misrepresented; you must not\r
+   claim that you wrote the original software. If you use this software\r
+   in a product, an acknowledgment in the product documentation would be\r
+   appreciated but is not required.\r
+2. Altered source versions must be plainly marked as such, and must not be\r
+   misrepresented as being the original software.\r
+3. This notice may not be removed or altered from any source distribution.\r
+\r
+Michal Molhanec <mol1111 at users.sourceforge.net>\r
+Jirka Kosek <kosek at users.sourceforge.net>\r
+Michiel Hendriks <elmuerte at users.sourceforge.net>\r
+\r
+-->\r
+<highlighters>\r
+       <highlighter type="oneline-comment">#</highlighter>\r
+       <highlighter type="heredoc">\r
+               <start>&lt;&lt;</start>\r
+               <noWhiteSpace/>\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>"</string>\r
+               <escape>\</escape>\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>%Q{</string>\r
+               <endString>}</endString>\r
+               <escape>\</escape>\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>%/</string>\r
+               <endString>/</endString>\r
+               <escape>\</escape>\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>'</string>\r
+               <escape>\</escape>\r
+       </highlighter>\r
+       <highlighter type="string">\r
+               <string>%q{</string>\r
+               <endString>}</endString>\r
+               <escape>\</escape>\r
+       </highlighter>\r
+       <highlighter type="hexnumber">\r
+               <prefix>0x</prefix>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="number">\r
+               <point>.</point>\r
+               <exponent>e</exponent>\r
+               <ignoreCase />\r
+       </highlighter>\r
+       <highlighter type="keywords">\r
+               <keyword>alias</keyword>\r
+               <keyword>and</keyword>\r
+               <keyword>BEGIN</keyword>\r
+               <keyword>begin</keyword>\r
+               <keyword>break</keyword>\r
+               <keyword>case</keyword>\r
+               <keyword>class</keyword>\r
+               <keyword>def</keyword>\r
+               <keyword>defined</keyword>\r
+               <keyword>do</keyword>\r
+               <keyword>else</keyword>\r
+               <keyword>elsif</keyword>\r
+               <keyword>END</keyword>\r
+               <keyword>end</keyword>\r
+               <keyword>ensure</keyword>\r
+               <keyword>false</keyword>\r
+               <keyword>for</keyword>\r
+               <keyword>if</keyword>\r
+               <keyword>in</keyword>\r
+               <keyword>module</keyword>\r
+               <keyword>next</keyword>\r
+               <keyword>nil</keyword>\r
+               <keyword>not</keyword>\r
+               <keyword>or</keyword>\r
+               <keyword>redo</keyword>\r
+               <keyword>rescue</keyword>\r
+               <keyword>retry</keyword>\r
+               <keyword>return</keyword>\r
+               <keyword>self</keyword>\r
+               <keyword>super</keyword>\r
+               <keyword>then</keyword>\r
+               <keyword>true</keyword>\r
+               <keyword>undef</keyword>\r
+               <keyword>unless</keyword>\r
+               <keyword>until</keyword>\r
+               <keyword>when</keyword>\r
+               <keyword>while</keyword>\r
+               <keyword>yield</keyword>\r
+       </highlighter>\r
+</highlighters>
\ No newline at end of file
diff --git a/xsl/highlighting/tcl-hl.xml b/xsl/highlighting/tcl-hl.xml
new file mode 100644 (file)
index 0000000..7a8fa9f
--- /dev/null
@@ -0,0 +1,180 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+xslthl highlighter definition fof Tcl/Tk.
+written by Arndt Roger Schneider
+
+Copyright 2008 Arndt Roger Schneider
+License: xlib/libpng
+
+This software is provided "as-is", without any express or implied
+warranty. In no event will the authors be held liable for any damages
+arising from the use of this software.
+
+Permission is granted to anyone to use this software for any purpose,
+including commercial applications, and to alter it and redistribute it
+freely, subject to the following restrictions:
+
+1. The origin of this software must not be misrepresented; you must
+   not claim that you wrote the original software. If you use this
+   software in a product, an acknowledgment in the product
+   documentation would be appreciated but is not required.
+
+2. Altered source versions must be plainly marked as such, and must
+   not be misrepresented as being the original software.
+
+3. This notice may not be removed or altered from any source
+   distribution.
+   
+-->
+<highlighters>
+       <highlighter type="oneline-comment">#</highlighter>
+       <highlighter type="string">
+               <string>"</string>
+               <escape>\</escape>
+       </highlighter>
+       <highlighter type="regex">
+               <pattern>-[\p{javaJavaIdentifierStart}][\p{javaJavaIdentifierPart}]+
+               </pattern>
+               <style>none</style>
+       </highlighter>
+       <highlighter type="number">
+               <point>.</point>
+               <ignoreCase />
+       </highlighter>
+       <highlighter type="keywords">
+               <!-- Tcl and itcl / structural -->
+               <keyword>if</keyword>
+               <keyword>then</keyword>
+               <keyword>else</keyword>
+               <keyword>elseif</keyword>
+               <keyword>for</keyword>
+               <keyword>foreach</keyword>
+               <keyword>break</keyword>
+               <keyword>continue</keyword>
+               <keyword>while</keyword>
+               <keyword>eval</keyword>
+               <keyword>case</keyword>
+               <keyword>in</keyword>
+               <keyword>switch</keyword>
+               <keyword>default</keyword>
+               <keyword>exit</keyword>
+               <keyword>error</keyword>
+               <keyword>proc</keyword>
+               <keyword>rename</keyword>
+               <keyword>exec</keyword>
+               <keyword>return</keyword>
+               <keyword>uplevel</keyword>
+               <keyword>upvar</keyword>
+               <keyword>constructor</keyword>
+               <keyword>destructor</keyword>
+               <keyword>itcl_class</keyword>
+               <keyword>loop</keyword>
+               <keyword>for_array_keys</keyword>
+               <keyword>for_recursive_glob</keyword>
+               <keyword>for_file</keyword>
+               <keyword>method</keyword>
+               <keyword>body</keyword>
+               <keyword>configbody</keyword>
+               <keyword>catch</keyword>
+               <keyword>namespace</keyword>
+               <keyword>class</keyword>
+               <keyword>array</keyword>
+               <keyword>set</keyword>
+               <keyword>unset</keyword>
+               <keyword>package</keyword>
+               <keyword>source</keyword>
+
+    <!-- Additional commands -->
+               <keyword>subst</keyword>
+               <keyword>list</keyword>
+               <keyword>format</keyword>
+               <keyword>lappend</keyword>
+               <keyword>option</keyword>
+               <keyword>expr</keyword>
+               <keyword>puts</keyword>
+               <keyword>winfo</keyword>
+               <keyword>lindex</keyword>
+               <keyword>string</keyword>
+
+
+    <!-- Runtime Library / structural -->
+               <keyword>verified</keyword>
+               <keyword>seteach</keyword>
+               <keyword>fixme</keyword>
+               <keyword>debug</keyword>
+               <keyword>rtl::debug</keyword>
+               <keyword>rtl::verified</keyword>
+               <keyword>rtl::template</keyword>
+               <keyword>rtl::seteach</keyword>
+
+    <!-- Runtime Library / Additional -->
+               <keyword>mkProc</keyword>
+               <keyword>getCreator</keyword>
+               <keyword>properties</keyword>
+               <keyword>lappendunique</keyword>
+               <keyword>rtl::lappendunique</keyword>
+
+    <!-- geometry managers from Tk -->
+               <keyword>place</keyword>
+               <keyword>pack</keyword>
+               <keyword>grid</keyword>
+
+
+    <!-- Additional Tk stuff -->
+               <keyword>image</keyword>
+               <keyword>font</keyword>
+               <keyword>focus</keyword>
+               <keyword>tk</keyword>
+               <keyword>bind</keyword>
+               <keyword>after</keyword>
+
+    <!-- Window classes from Tk, ... -->
+               <keyword>toplevel</keyword>
+               <keyword>frame</keyword>
+               <keyword>entry</keyword>
+               <keyword>listbox</keyword>
+               <keyword>button</keyword>
+               <keyword>radiobutton</keyword>
+               <keyword>checkbutton</keyword>
+               <keyword>canvas</keyword>
+               <keyword>menu</keyword>
+               <keyword>menubutton</keyword>
+               <keyword>text</keyword>
+               <keyword>label</keyword>
+               <keyword>message</keyword>
+               <!--
+                       The rest of Tk's windows is omitted: scrollbar, scale, panedwindow, labelframe, spinbox ...
+               -->
+
+    <!-- ... from tkZinc, ... -->
+               <keyword>zinc</keyword>
+  
+    <!-- ... from tkpath, ... -->
+               <keyword>tkpath::gradient</keyword>
+
+    <!-- ... from Runtime Library, ... -->
+               <keyword>rtl_combobox</keyword>
+               <keyword>rtl_tree</keyword>
+               <keyword>rtl_tabset</keyword>
+               <keyword>rtl_mlistbox</keyword>
+               <keyword>rtl_gridwin</keyword>
+               <keyword>rtlysizer</keyword>
+               <keyword>rtlxsizer</keyword>
+               <!--
+                       The rest of RTL's windows is omitted: spinbox, decoratedframe, symbolbar, symbolbarcustomize, question ...
+               -->
+
+    <!-- ... from GEI, ... -->
+               <keyword>goolbar</keyword>
+               <keyword>gstripes</keyword>
+               <keyword>zoolbar</keyword>
+               <keyword>gistbox</keyword>
+               <keyword>gooleditor</keyword>
+               <keyword>galette</keyword>
+       </highlighter>
+</highlighters>
+       <!--
+               Local Variables: mode: sgml coding: utf-8-unix sgml-indent-step: 2 sgml-indent-data: t sgml-set-face: t
+               sgml-insert-missing-element-comment: nil End:
+       -->
\ No newline at end of file
index 7c77f6fc65d644ea2ad85268135ac783252e98e4..b24e4690b955c8c92002210a0ab3306f6c9507dd 100644 (file)
@@ -1,11 +1,46 @@
-<?xml version='1.0'?>\r
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!-- \r
+\r
+xslthl - XSLT Syntax Highlighting\r
+http://sourceforge.net/projects/xslthl/\r
+Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks\r
+\r
+This software is provided 'as-is', without any express or implied\r
+warranty.  In no event will the authors be held liable for any damages\r
+arising from the use of this software.\r
+\r
+Permission is granted to anyone to use this software for any purpose,\r
+including commercial applications, and to alter it and redistribute it\r
+freely, subject to the following restrictions:\r
+\r
+1. The origin of this software must not be misrepresented; you must not\r
+   claim that you wrote the original software. If you use this software\r
+   in a product, an acknowledgment in the product documentation would be\r
+   appreciated but is not required.\r
+2. Altered source versions must be plainly marked as such, and must not be\r
+   misrepresented as being the original software.\r
+3. This notice may not be removed or altered from any source distribution.\r
+\r
+Michal Molhanec <mol1111 at users.sourceforge.net>\r
+Jirka Kosek <kosek at users.sourceforge.net>\r
+Michiel Hendriks <elmuerte at users.sourceforge.net>\r
+\r
+-->\r
 <xslthl-config>\r
-  <highlighter id='java'   file='./java-hl.xml'  />\r
-  <highlighter id='delphi' file='./delphi-hl.xml'/>\r
-  <highlighter id='ini'    file='./ini-hl.xml'   />\r
-  <highlighter id='php'    file='./php-hl.xml'   />\r
-  <highlighter id='myxml'  file='./myxml-hl.xml' />\r
-  <highlighter id='m2'     file='./m2-hl.xml'    />\r
-  <highlighter id='c'      file='./c-hl.xml'    />\r
-  <namespace prefix="xslthl" uri="http://xslthl.sf.net" />\r
-</xslthl-config>\r
+       <highlighter id="java" file="java-hl.xml" />\r
+       <highlighter id="delphi" file="delphi-hl.xml" />\r
+       <highlighter id="pascal" file="delphi-hl.xml" />\r
+       <highlighter id="ini" file="ini-hl.xml" />\r
+       <highlighter id="php" file="php-hl.xml" />\r
+       <highlighter id="myxml" file="myxml-hl.xml" />\r
+       <highlighter id="m2" file="m2-hl.xml" />\r
+       <highlighter id="tcl" file="tcl-hl.xml" />\r
+       <highlighter id="c" file="c-hl.xml" />\r
+       <highlighter id="cpp" file="cpp-hl.xml" />\r
+       <highlighter id="csharp" file="csharp-hl.xml" />\r
+       <highlighter id="python" file="python-hl.xml" />\r
+       <highlighter id="ruby" file="ruby-hl.xml" />\r
+       <highlighter id="perl" file="perl-hl.xml" />    \r
+       <highlighter id="javascript" file="javascript-hl.xml" />\r
+       <namespace prefix="xslthl" uri="http://xslthl.sf.net" />\r
+</xslthl-config>
\ No newline at end of file
index cf7a413a8d1c9aebe8aba0109a67b54835db4219..4d786aeec09369c77e2d447f463a103e8b226034 100644 (file)
 \r
      ******************************************************************** -->\r
 \r
-<xsl:template match='xslthl:keyword'>\r
-  <b class="hl-keyword"><xsl:apply-templates/></b>\r
+<xsl:template match='xslthl:keyword' mode="xslthl">\r
+  <b class="hl-keyword"><xsl:apply-templates mode="xslthl"/></b>\r
 </xsl:template>\r
 \r
-<xsl:template match='xslthl:string'>\r
-  <b class="hl-string"><i style="color:red"><xsl:apply-templates/></i></b>\r
+<xsl:template match='xslthl:string' mode="xslthl">\r
+  <b class="hl-string"><i style="color:red"><xsl:apply-templates mode="xslthl"/></i></b>\r
 </xsl:template>\r
 \r
-<xsl:template match='xslthl:comment'>\r
-  <i class="hl-comment" style="color: silver"><xsl:apply-templates/></i>\r
+<xsl:template match='xslthl:comment' mode="xslthl">\r
+  <i class="hl-comment" style="color: silver"><xsl:apply-templates mode="xslthl"/></i>\r
 </xsl:template>\r
 \r
-<xsl:template match='xslthl:tag'>\r
-  <b class="hl-tag" style="color: blue"><xsl:apply-templates/></b>\r
+<xsl:template match='xslthl:directive' mode="xslthl">\r
+  <span class="hl-directive" style="color: maroon"><xsl:apply-templates mode="xslthl"/></span>\r
 </xsl:template>\r
 \r
-<xsl:template match='xslthl:attribute'>\r
-  <span class="hl-attribute" style="color: blue"><xsl:apply-templates/></span>\r
+<xsl:template match='xslthl:tag' mode="xslthl">\r
+  <b class="hl-tag" style="color: blue"><xsl:apply-templates mode="xslthl"/></b>\r
 </xsl:template>\r
 \r
-<xsl:template match='xslthl:value'>\r
-  <span class="hl-value" style="color: blue"><xsl:apply-templates/></span>\r
+<xsl:template match='xslthl:attribute' mode="xslthl">\r
+  <span class="hl-attribute" style="color: blue"><xsl:apply-templates mode="xslthl"/></span>\r
 </xsl:template>\r
 \r
-<xsl:template match='xslthl:html'>\r
-  <b><i style="color: red"><xsl:apply-templates/></i></b>\r
+<xsl:template match='xslthl:value' mode="xslthl">\r
+  <span class="hl-value" style="color: blue"><xsl:apply-templates mode="xslthl"/></span>\r
 </xsl:template>\r
 \r
-<xsl:template match='xslthl:xslt'>\r
-  <b style="color: blue"><xsl:apply-templates/></b>\r
+<xsl:template match='xslthl:html' mode="xslthl">\r
+  <b><i style="color: red"><xsl:apply-templates mode="xslthl"/></i></b>\r
 </xsl:template>\r
 \r
-<xsl:template match='xslthl:section'>\r
-  <b><xsl:apply-templates/></b>\r
+<xsl:template match='xslthl:xslt' mode="xslthl">\r
+  <b style="color: blue"><xsl:apply-templates mode="xslthl"/></b>\r
 </xsl:template>\r
 \r
-</xsl:stylesheet>\r
+<!-- Not emitted since XSLTHL 2.0 -->\r
+<xsl:template match='xslthl:section' mode="xslthl">\r
+  <b><xsl:apply-templates mode="xslthl"/></b>\r
+</xsl:template>\r
+\r
+<xsl:template match='xslthl:number' mode="xslthl">\r
+  <span class="hl-number"><xsl:apply-templates mode="xslthl"/></span>\r
+</xsl:template>\r
+\r
+<xsl:template match='xslthl:annotation' mode="xslthl">\r
+  <i><span class="hl-annotation" style="color: gray"><xsl:apply-templates mode="xslthl"/></span></i>\r
+</xsl:template>\r
+\r
+<!-- Not sure which element will be in final XSLTHL 2.0 -->\r
+<xsl:template match='xslthl:doccomment|xslthl:doctype' mode="xslthl">\r
+  <b class="hl-tag" style="color: blue"><xsl:apply-templates mode="xslthl"/></b>\r
+</xsl:template>\r
 \r
+</xsl:stylesheet>
\ No newline at end of file
index c345f3053452cf5d3c6657db22d00f11c8a4cefa..49c4125ff6ef3058ff9015349f894f79b5c7e172 100644 (file)
@@ -73,6 +73,7 @@
 <!ENTITY header.rule SYSTEM "../params/header.rule.xml">
 <!ENTITY highlight.default.language SYSTEM "../params/highlight.default.language.xml"> 
 <!ENTITY highlight.source SYSTEM "../params/highlight.source.xml"> 
+<!ENTITY highlight.xslthl.config SYSTEM "../params/highlight.xslthl.config.xml"> 
 <!ENTITY html.append SYSTEM "../params/html.append.xml">
 <!ENTITY html.base SYSTEM "../params/html.base.xml">
 <!ENTITY html.cleanup SYSTEM "../params/html.cleanup.xml">
index 3b33f50130b7763bf66f119fd511cac6cd46de73..315d9cc7acef3fffa4f104ded8e68acf2e00f24b 100644 (file)
@@ -261,6 +261,7 @@ $Id$
 &footnote.number.symbols;
 &table.footnote.number.symbols;
 &highlight.source;
+&highlight.xslthl.config;
 &highlight.default.language;
 &email.delimiters.enabled;
 </reference>
@@ -521,6 +522,7 @@ around all these parameters.</para>
 <src:fragref linkend="header.rule.frag"/>
 <src:fragref linkend="highlight.default.language.frag"/>
 <src:fragref linkend="highlight.source.frag"/>
+<src:fragref linkend="highlight.xslthl.config.frag"/>
 <src:fragref linkend="html.append.frag"/>
 <src:fragref linkend="html.base.frag"/>
 <src:fragref linkend="html.cellpadding.frag"/>
index 430821159619d8d082424fef42627ce2b06907d7..994508422480e137cfb58c19261405dd10c47ed9 100644 (file)
@@ -27,17 +27,17 @@ syntax highlighting of the content of the <tag>programlisting</tag> element. The
 XSLTHL extension module. This is an external Java library which is not part of the DocBook XSL distribution.</para>
 
 <para>In order to use this extension, you must add
-<filename>xslthl.jar</filename> to your Java classpath. You can
+<filename>xslthl-2.0.0.jar</filename> to your Java classpath. You can
 download this software from <link xlink:href="http://sourceforge.net/projects/xslthl">the XSLT syntax highlighting project</link> at SourceForge.</para>
 
 <para>The configuration of syntax highlighting is stored in 
 <filename>highlighting/xslthl-config.xml</filename>. The Java
-property <literal>xslthl.config</literal> must point to this
+property <literal>xslthl.config</literal> or parameter <parameter>highlight.xslthl.config</parameter> must point to this
 file (using URL syntax).</para>
 
-<para>This extension is known to work with Saxon 6.5.x. Here is an example of a modified Saxon command:</para>
+<para>This extension is known to work with Saxon 6.5.x, Saxon 8.5+ and Xalan-J. Here is an example of a modified Saxon command:</para>
 
-<programlisting>java -cp c:\batch\;…;c:\path\to\xslthl.jar -Dxslthl.config=file:///c:/docbook-xsl/highlighting/xslthl-config.xml … com.icl.saxon.StyleSheet …</programlisting>
+<programlisting>java -cp c:\batch\;…;c:\path\to\xslthl-2.0.0.jar -Dxslthl.config=file:///c:/docbook-xsl/highlighting/xslthl-config.xml … com.icl.saxon.StyleSheet …</programlisting>
 
 <para>You can specify the language for each programlisting by using the <tag class="attribute">language</tag> attribute. The
 <parameter>highlighting.default.language</parameter> parameter can be used for specifying the
diff --git a/xsl/params/highlight.xslthl.config.xml b/xsl/params/highlight.xslthl.config.xml
new file mode 100644 (file)
index 0000000..3ef8e49
--- /dev/null
@@ -0,0 +1,27 @@
+<refentry xmlns="http://docbook.org/ns/docbook"
+          xmlns:xlink="http://www.w3.org/1999/xlink"
+          xmlns:xi="http://www.w3.org/2001/XInclude"
+          xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
+          xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+          version="5.0" xml:id="highlight.xslthl.config">
+<refmeta>
+<refentrytitle>highlight.xslthl.config</refentrytitle>
+<refmiscinfo class="other" otherclass="datatype">uri</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>highlight.xslthl.config</refname>
+<refpurpose>Location of XSLTHL configuration file</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment xml:id="highlight.xslthl.config.frag">
+<xsl:param name="highlight.xslthl.config"></xsl:param>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsection><info><title>Description</title></info>
+
+<para>This location has precedence over the corresponding Java property.</para>
+
+</refsection>
+</refentry>