<regexp>
Description
Specifies a list of
searchPattern
Attributes
,
,
name
id
delimiter
•
name="stringStart_name"
•
id="id_string"
•
The character or string that starts and ends a regular expression.
delimiter
•
The character or string that signals special character processing, known as the
escape
"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
on page
103.
Attributes
doctypes
•
doctypes="doc_type1, doc_type2,..."
text appears.
Example
<sampleText doctypes="JavaScript"><![CDATA[/* JavaScript */
function displayWords(arrayWords) {
for (i=0; i < arrayWords.length(); i++) {
// inline comment
alert("Word "
}
}
var tokens = new Array("Hello", "world");
displayWords(tokens);
]]></sampleText>
tags.
,
escape
A string that assigns a name to the list of search pattern strings.
Required. An identifier string that maps color and style to this syntax item.
+ i +
" is "
+ arrayWords[i]);
"Editing schemes"
The document types for which this sample
Code coloring
95
Need help?
Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?