|
<?xml version="1.0" encoding="ISO-8859-1" ?>
<highlight needs-build="yes" save-build="no">
<!-- families of keywords -->
<keywordlists>
<!-- C keywords -->
<keywordlist id="kwc-keywords">
<kw>auto</kw>
<kw>const</kw>
<kw>double</kw>
<kw>float</kw>
<kw>int</kw>
<kw>short</kw>
<kw>struct</kw>
<kw>unsigned</kw>
<kw>break</kw>
<kw>continue</kw>
<kw>else</kw>
<kw>for</kw>
<kw>long</kw>
<kw>signed</kw>
<kw>switch</kw>
<kw>void</kw>
<kw>case</kw>
<kw>default</kw>
<kw>enum</kw>
<kw>goto</kw>
<kw>register</kw>
<kw>sizeof</kw>
<kw>typedef</kw>
<kw>volatile</kw>
<kw>char</kw>
<kw>do</kw>
<kw>extern</kw>
<kw>if</kw>
<kw>return</kw>
<kw>static</kw>
<kw>union</kw>
<kw>while</kw>
</keywordlist>
<!-- C++ keywords -->
<keywordlist id="kwcpp-keywords">
<kw>asm</kw>
<kw>dynamic_cast</kw>
<kw>namespace</kw>
<kw>reinterpret_cast</kw>
<kw>try</kw>
<kw>bool</kw>
<kw>explicit</kw>
<kw>new</kw>
<kw>static_cast</kw>
<kw>typeid</kw>
<kw>catch</kw>
<kw>false</kw>
<kw>operator</kw>
<kw>template</kw>
<kw>typename</kw>
<kw>class</kw>
<kw>friend</kw>
<kw>private</kw>
<kw>this</kw>
<kw>using</kw>
<kw>const_cast</kw>
<kw>inline</kw>
<kw>public</kw>
<kw>throw</kw>
<kw>virtual</kw>
<kw>delete</kw>
<kw>mutable</kw>
<kw>protected</kw>
<kw>true</kw>
<kw>wchar_t</kw>
</keywordlist>
<!-- C++ preprocessor keywords -->
<keywordlist id="kwcpp-preprocessors" pre="#">
<kw>define</kw>
<kw>error</kw>
<kw>import</kw>
<kw>undef</kw>
<kw>elif</kw>
<kw>if</kw>
<kw>include</kw>
<kw>else</kw>
<kw>ifdef</kw>
<kw>line</kw>
<kw>endif</kw>
<kw>ifndef</kw>
<kw>pragma</kw>
</keywordlist>
<!-- STL keywords -->
<keywordlist id="kwcpp-stl" pre="(std::){0,1}">
<kw>vector</kw>
<kw>set</kw>
<kw>map</kw>
<kw>list</kw>
<kw>stack</kw>
<kw>deque</kw>
<kw>multimap</kw>
<kw>multiset</kw>
</keywordlist>
<!-- VBScript keywords -->
<keywordlist id="kwvbscript-keywords">
<kw>Empty</kw>
<kw>False</kw>
<kw>Nothing</kw>
<kw>Null</kw>
<kw>True</kw>
</keywordlist>
<keywordlist id="kwvbscript-statements">
<kw>Call</kw>
<kw>Class</kw>
<kw>Const</kw>
<kw>Dim</kw>
<kw>Do</kw>
<kw>Loop</kw>
<kw>Erase</kw>
<kw>Execute</kw>
<kw>ExecuteGlobal</kw>
<kw>Exit</kw>
<kw>For</kw>
<kw>Each</kw>
<kw>Next</kw>
<kw>Function</kw>
<kw>If</kw>
<kw>Then</kw>
<kw>Else</kw>
<kw>On</kw>
<kw>Error</kw>
<kw>Option</kw>
<kw>Explicit</kw>
<kw>Private</kw>
<kw>Property</kw>
<kw>Get</kw>
<kw>Property</kw>
<kw>Let</kw>
<kw>Property</kw>
<kw>Set</kw>
<kw>Public</kw>
<kw>Randomize</kw>
<kw>ReDim</kw>
<kw>Rem</kw>
<kw>Select</kw>
<kw>Case</kw>
<kw>Stop</kw>
<kw>Sub</kw>
<kw>While</kw>
<kw>Wend</kw>
<kw>With</kw>
</keywordlist>
<keywordlist id="kwvbscript-methods">
<kw>Clear</kw>
<kw>Execute</kw>
<kw>Raise</kw>
<kw>Replace</kw>
<kw>Test</kw>
<kw>Write</kw>
<kw>WriteLine</kw>
</keywordlist>
<keywordlist id="kwvbscript-functions">
<kw>Abs</kw>
<kw>Array</kw>
<kw>Asc</kw>
<kw>Atn</kw>
<kw>CBool</kw>
<kw>CByte</kw>
<kw>CCur</kw>
<kw>CDate</kw>
<kw>CDbl</kw>
<kw>Chr</kw>
<kw>CInt</kw>
<kw>CLng</kw>
<kw>Conversions</kw>
<kw>Cos</kw>
<kw>CreateObject</kw>
<kw>CSng</kw>
<kw>CStr</kw>
<kw>Date</kw>
<kw>DateAdd</kw>
<kw>DateDiff</kw>
<kw>DatePart</kw>
<kw>DateSerial</kw>
<kw>DateValue</kw>
<kw>Day</kw>
<kw>Derived</kw>
<kw>Math</kw>
<kw>Escape</kw>
<kw>Eval</kw>
<kw>Exp</kw>
<kw>Filter</kw>
<kw>FormatCurrency</kw>
<kw>FormatDateTime</kw>
<kw>FormatNumber</kw>
<kw>FormatPercent</kw>
<kw>GetLocale</kw>
<kw>GetObject</kw>
<kw>GetRef</kw>
<kw>Hex</kw>
<kw>Hour</kw>
<kw>InputBox</kw>
<kw>InStr</kw>
<kw>InStrRev</kw>
<kw>Int</kw>
<kw>Fix</kw>
<kw>IsArray</kw>
<kw>IsDate</kw>
<kw>IsEmpty</kw>
<kw>IsNull</kw>
<kw>IsNumeric</kw>
<kw>IsObject</kw>
<kw>Join</kw>
<kw>LBound</kw>
<kw>LCase</kw>
<kw>Left</kw>
<kw>Len</kw>
<kw>LoadPicture</kw>
<kw>Log</kw>
<kw>LTrim</kw>
<kw>RTrim</kw>
<kw>and</kw>
<kw>Trim</kw>
<kw>Maths</kw>
<kw>Mid</kw>
<kw>Minute</kw>
<kw>Month</kw>
<kw>MonthName</kw>
<kw>MsgBox</kw>
<kw>Now</kw>
<kw>Oct</kw>
<kw>Replace</kw>
<kw>RGB</kw>
<kw>Right</kw>
<kw>Rnd</kw>
<kw>Round</kw>
<kw>ScriptEngine</kw>
<kw>ScriptEngineBuildVersion</kw>
<kw>ScriptEngineMajorVersion</kw>
<kw>ScriptEngineMinorVersion</kw>
<kw>Second</kw>
<kw>SetLocale</kw>
<kw>Sgn</kw>
<kw>Sin</kw>
<kw>Space</kw>
<kw>Split</kw>
<kw>Sqr</kw>
<kw>StrComp</kw>
<kw>String</kw>
<kw>StrReverse</kw>
<kw>Tan</kw>
<kw>Time</kw>
<kw>Timer</kw>
<kw>TimeSerial</kw>
<kw>TimeValue</kw>
<kw>TypeName</kw>
<kw>UBound</kw>
<kw>UCase</kw>
<kw>Unescape</kw>
<kw>VarType</kw>
<kw>Weekday</kw>
<kw>WeekdayName</kw>
<kw>Year</kw>
</keywordlist>
<!-- JSCript keywords -->
<keywordlist id="kwjscript-statements">
<kw>break</kw>
<kw>catch</kw>
<kw>continue</kw>
<kw>debugger</kw>
<kw>do</kw>
<kw>while</kw>
<kw>for</kw>
<kw>in</kw>
<kw>function</kw>
<kw>if</kw>
<kw>else</kw>
<kw>Labeled</kw>
<kw>return</kw>
<kw>switch</kw>
<kw>this</kw>
<kw>throw</kw>
<kw>try</kw>
<kw>while</kw>
<kw>var</kw>
<kw>with</kw>
</keywordlist>
<keywordlist id="kwjscript-objects">
<kw>ActiveXObject</kw>
<kw>Array</kw>
<kw>arguments</kw>
<kw>Boolean</kw>
<kw>Date</kw>
<kw>Debug</kw>
<kw>Enumerator</kw>
<kw>Error</kw>
<kw>Function</kw>
<kw>Global</kw>
<kw>Math</kw>
<kw>Number</kw>
<kw>Object</kw>
<kw>RegExp</kw>
<kw>String</kw>
<kw>VBArray</kw>
</keywordlist>
<keywordlist id="kwxml-esc">
<kw><![CDATA[<]]></kw>
<kw><![CDATA[>]]></kw>
<kw><![CDATA[&]]></kw>
<kw><![CDATA["]]></kw>
<kw><![CDATA[']]></kw>
</keywordlist>
</keywordlists>
<!-- Languages syntax specification -->
<languages>
<!-- C language specification -->
<language id="c">
<!-- Code contexts: default (most common) is code. -->
<contexts default="code">
<!-- basic source code context -->
<context id="code" attribute="code">
<!-- /* block of comment */ -->
<detect2chars attribute="hidden" context="blockcomment" char="/" char1="*" />
<!-- " " literals -->
<regexp attribute="literal" context="code" expression=""(.|\\"|\\\r\n)*?((\\\\)+"|[^\\]{1}")" />
<!-- keyword c -->
<keyword attribute="keyword" context="code" family="kwc-keywords" />
<!-- preprocessor keywords -->
<keyword attribute="keyword" context="code" family="kwcpp-preprocessors" />
</context>
<!-- block comment /* ... �*/ -->
<context id="blockcomment" attribute="cpp-blockcomment">
<!-- finish line of comment, start block -->
<detect2chars attribute="hidden" context="code" char="*" char1="/" />
</context>
</contexts>
</language>
<!-- C++ language specification -->
<language id="cpp">
<!-- Code contexts: default (most common) is code. -->
<contexts default="code">
<!-- basic source code context -->
<context id="code" attribute="code">
<!-- /* block of comment */ -->
<detect2chars attribute="hidden" context="blockcomment" char="/" char1="*" />
<!-- // line of comment -->
<detect2chars attribute="hidden" context="linecomment" char="/" char1="/" />
<!-- " " literals -->
<regexp attribute="literal" context="code" expression=""(.|\\"|\\\r\n)*?((\\\\)+"|[^\\]{1}")" />
<!-- keyword c -->
<keyword attribute="keyword" context="code" family="kwc-keywords" />
<!-- keyword c++ -->
<keyword attribute="keyword" context="code" family="kwcpp-keywords" />
<!-- keyword stl -->
<keyword attribute="keyword" context="code" family="kwcpp-stl" />
<!-- preprocessor keywords -->
<keyword attribute="keyword" context="code" family="kwcpp-preprocessors" />
</context>
<!-- block comment /* ... �*/ -->
<context id="blockcomment" attribute="cpp-blockcomment">
<!-- finish line of comment, start block -->
<detect2chars attribute="hidden" context="code" char="*" char1="/" />
</context>
<!-- line comment // ... -->
<context id="linecomment" attribute="cpp-linecomment">
<!-- finish line of comment, start block -->
<detect2chars attribute="hidden" context="blockcomment" char="/" char1="*" />
<!-- finish line of comment end of line -->
<linecontinue attribute="hidden" context="code" />
</context>
</contexts>
</language>
<!-- VB Script -->
<language id="vbscript">
<contexts default="code">
<!-- Code context -->
<context id="code" attribute="code">
<!-- Single line of comment -->
<regexp attribute="vb-comment" context="code" expression="'.*$" />
<!-- litteral -->
<regexp attribute="literal" context="code" expression=""(.|"")*?"" />
<!-- Keywords -->
<keyword attribute="keyword" context="code" family="kwvbscript-keywords" />
<!-- Statements -->
<keyword attribute="keyword" context="code" family="kwvbscript-statements" />
<!-- methods -->
<keyword attribute="keyword" context="code" family="kwvbscript-methods" />
<!-- methods -->
<keyword attribute="keyword" context="code" family="kwvbscript-functions" />
</context>
</contexts>
</language>
<!-- JSCript -->
<language id="jscript">
<!-- Code contexts: default (most common) is code. -->
<contexts default="code">
<!-- basic source code context -->
<context id="code" attribute="code">
<!-- /* block of comment */ -->
<detect2chars attribute="hidden" context="blockcomment" char="/" char1="*" />
<!-- // line of comment -->
<detect2chars attribute="hidden" context="linecomment" char="/" char1="/" />
<!-- " " literals -->
<regexp attribute="literal" context="code" expression=""(.|\\"|\\\r\n)*?((\\\\)+"|[^\\]{1}")" />
<!-- statements -->
<keyword attribute="keyword" context="code" family="kwjscript-statements" />
<!-- objects -->
<keyword attribute="keyword" context="code" family="kwjscript-objects" />
</context>
<!-- block comment /* ... �*/ -->
<context id="blockcomment" attribute="cpp-blockcomment">
<!-- finish line of comment, start block -->
<detect2chars attribute="hidden" context="code" char="*" char1="/" />
</context>
<!-- line comment // ... -->
<context id="linecomment" attribute="cpp-linecomment">
<!-- finish line of comment, start block -->
<detect2chars attribute="hidden" context="cpp-blockcomment" char="/" char1="*" />
<!-- finish line of comment end of line -->
<linecontinue attribute="hidden" context="code" />
</context>
</contexts>
</language>
<!-- XML -->
<language id="xml">
<contexts default="value">
<!-- Value context -->
<context id="value" attribute="xml-value">
<regexp attribute="hidden" context="cdata" expression="<!\[CDATA\[" />
<regexp attribute="xml-bracket" context="closing-element" expression="</" />
<regexp attribute="xml-bracket" context="opening-element" expression="<\?{0,1}" />
</context>
<context id="cdata" attribute="xml-cdata">
<regexp attribute="hidden" context="value" expression="\]\]>" />
</context>
<!-- opening element context -->
<context id="opening-element" attribute="xml-code">
// find tag...
<regexp attribute="xml-tag" context="element-attributes" expression="\b((\w|-)+\:){0,1}(\w|-)+\b" />
</context>
<!-- closing element -->
<context id="closing-element" attribute="xml-code">
<regexp attribute="xml-tag" context="closing-element" expression="\b(\w|-)+\b" />
<regexp attribute="xml-bracket" context="value" expression="(\?|/){0,1}>" />
</context>
<!-- attributes group -->
<context id="element-attributes" attribute="xml-code">
// find end of element
<regexp attribute="xml-bracket" context="value" expression="(\?|/){0,1}>" />
// find attributes...
<regexp attribute="xml-attribute-name" context="attribute-name" expression="\b(\w|-)+\b" />
</context>
<context id="attribute-name" attribute="xml-attribute-name">
<regexp attribute="xml-attribute-value" context="element-attributes" expression="=(".*?"|'.*?'|\b(\w|-)+\b)" />
</context>
</contexts>
</language>
</languages>
</highlight>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Jonathan de Halleux is Civil Engineer in Applied Mathematics. He finished his PhD in 2004 in the rainy country of Belgium. After 2 years in the Common Language Runtime (i.e. .net), he is now working at Microsoft Research on Pex (http://research.microsoft.com/pex).