User Guide

Code coloring 95
<regexp>
Description
Specifies a list of searchPattern tags.
Attributes
name
, id, delimiter, escape
name="stringStart_name" A string that assigns a name to the list of search pattern strings.
id="id_string" Required. An identifier string that maps color and style to this syntax item.
delimiter The character or string that starts and ends a regular expression.
escape The character or string that signals special character processing, known as the
escape” character or string.
Contents
<searchPattern></searchPattern>
Example
<regexp name="RegExp" id="CodeColor_JavascriptRegexp" delimiter="/"
escape="\\">
<searchPattern><![CDATA[(\s*/\e*\\/]]></searchPattern>
<searchPattern><![CDATA[=\s*/\e*\\/]]></searchPattern>
</regexp>
<sampleText>
Description
Representative text that appears in the Preview window of the Edit Coloring Scheme dialog box.
For more information on the Edit Coloring Scheme dialog box, see “Editing schemes
on page 103.
Attributes
doctypes
doctypes="doc_type1, doc_type2,...” The document types for which this sample
text appears.
Example
<sampleText doctypes="JavaScript"><![CDATA[/* JavaScript */
function displayWords(arrayWords) {
for (i=0; i < arrayWords.length(); i++) {
// inline comment
alert("Word " + i + " is " + arrayWords[i]);
}
}
var tokens = new Array("Hello", "world");
displayWords(tokens);
]]></sampleText>