cvs: phpdoc /xsl/docbook/highlighting common.xsl delphi-hl.xml ini-hl.xml java-hl.xml m2-hl.xml myxml-hl.xml php-hl.xml xslthl-config.xml

From: Date: Mon, 22 Jan 2007 13:09:11 +0000
Subject: cvs: phpdoc /xsl/docbook/highlighting common.xsl delphi-hl.xml ini-hl.xml java-hl.xml m2-hl.xml myxml-hl.xml php-hl.xml xslthl-config.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969374972@lists.php.net to get a copy of this message
bjori Mon Jan 22 13:09:11 2007 UTC Added files: /phpdoc/xsl/docbook/highlighting common.xsl delphi-hl.xml ini-hl.xml java-hl.xml m2-hl.xml myxml-hl.xml php-hl.xml xslthl-config.xml Log: Add missing directory

http://cvs.php.net/viewvc.cgi/phpdoc/xsl/docbook/highlighting/common.xsl?view=markup&rev=1.1 Index: phpdoc/xsl/docbook/highlighting/common.xsl +++ phpdoc/xsl/docbook/highlighting/common.xsl <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:hl="java:net.sf.xslthl.ConnectorSaxon6" xmlns:exsl="http://exslt.org/common" exclude-result-prefixes="exsl hl" version='1.0'> <!-- ******************************************************************** $Id: common.xsl,v 1.1 2007/01/22 13:09:11 bjori Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. See ../README or http://nwalsh.com/docbook/xsl/ for copyright and other information. ******************************************************************** --> <!-- You can override this template to do more complex mapping of language attribute to highlighter language ID (see xslthl-config.xml) --> <xsl:template name="language.to.xslthl"> <xsl:param name="context"/> <xsl:choose> <xsl:when test="$context/@language != ''"> <xsl:value-of select="$context/@language"/> </xsl:when> <xsl:when test="$highlight.default.language != ''"> <xsl:value-of select="$highlight.default.language"/> </xsl:when> </xsl:choose> </xsl:template> <xsl:template name="apply-highlighting"> <xsl:choose> <!-- Do we want syntax highlighting --> <xsl:when test="$highlight.source != 0 and function-available('hl:highlight')"> <xsl:variable name="language"> <xsl:call-template name="language.to.xslthl"> <xsl:with-param name="context" select="."/> </xsl:call-template> </xsl:variable> <xsl:choose> <xsl:when test="$language != ''"> <xsl:variable name="content"> <xsl:apply-templates/> </xsl:variable> <xsl:apply-templates select="hl:highlight($language, exsl:node-set($content))"/> </xsl:when> <xsl:otherwise> <xsl:apply-templates/> </xsl:otherwise> </xsl:choose> </xsl:when> <!-- No syntax highlighting --> <xsl:otherwise> <xsl:apply-templates/> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet> http://cvs.php.net/viewvc.cgi/phpdoc/xsl/docbook/highlighting/delphi-hl.xml?view=markup&rev=1.1 Index: phpdoc/xsl/docbook/highlighting/delphi-hl.xml +++ phpdoc/xsl/docbook/highlighting/delphi-hl.xml <?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. --> http://cvs.php.net/viewvc.cgi/phpdoc/xsl/docbook/highlighting/ini-hl.xml?view=markup&rev=1.1 Index: phpdoc/xsl/docbook/highlighting/ini-hl.xml +++ phpdoc/xsl/docbook/highlighting/ini-hl.xml <?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. --> http://cvs.php.net/viewvc.cgi/phpdoc/xsl/docbook/highlighting/java-hl.xml?view=markup&rev=1.1 Index: phpdoc/xsl/docbook/highlighting/java-hl.xml +++ phpdoc/xsl/docbook/highlighting/java-hl.xml <?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. --> http://cvs.php.net/viewvc.cgi/phpdoc/xsl/docbook/highlighting/m2-hl.xml?view=markup&rev=1.1 Index: phpdoc/xsl/docbook/highlighting/m2-hl.xml +++ phpdoc/xsl/docbook/highlighting/m2-hl.xml <?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. --> http://cvs.php.net/viewvc.cgi/phpdoc/xsl/docbook/highlighting/myxml-hl.xml?view=markup&rev=1.1 Index: phpdoc/xsl/docbook/highlighting/myxml-hl.xml +++ phpdoc/xsl/docbook/highlighting/myxml-hl.xml <?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. --> http://cvs.php.net/viewvc.cgi/phpdoc/xsl/docbook/highlighting/php-hl.xml?view=markup&rev=1.1 Index: phpdoc/xsl/docbook/highlighting/php-hl.xml +++ phpdoc/xsl/docbook/highlighting/php-hl.xml <?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. --> http://cvs.php.net/viewvc.cgi/phpdoc/xsl/docbook/highlighting/xslthl-config.xml?view=markup&rev=1.1 Index: phpdoc/xsl/docbook/highlighting/xslthl-config.xml +++ phpdoc/xsl/docbook/highlighting/xslthl-config.xml <?xml version='1.0'?> <xslthl-config> <highlighter id='java' file='./java-hl.xml' /> <highlighter id='delphi' file='./delphi-hl.xml'/> <highlighter id='ini' file='./ini-hl.xml' /> <highlighter id='php' file='./php-hl.xml' /> <highlighter id='myxml' file='./myxml-hl.xml' /> <highlighter id='m2' file='./m2-hl.xml' /> <namespace prefix="xslthl" uri="http://xslthl.sf.net" /> </xslthl-config>
« previous php.doc (#969374972) next »