Searchpattern, Stringstart – Adobe Extending Dreamweaver CS4 User Manual
Page 62

56
EXTENDING DREAMWEAVER CS4
Customizing Code view
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>
<searchPattern>
Description
A string of characters that define a regular search pattern using supported wildcard characters. Multiple
searchPattern
tags are allowed.
Attributes
None.
Container
The
regexp
tag.
Example
<searchPattern><![CDATA[(\s*/\e*\\/]]></searchPattern>
<stringStart>
Description
These tags contain a text string that represents the delimiter of the start of a string. You must specify the
stringStart
and
stringEnd
tags in pairs. Multiple
stringStart
…
stringEnd
pairs are allowed.
Attributes
name
,
id, wrap
•
name="stringStart_name"
A string that assigns a name to the
stringStart
block.
•
id="id_string"
Required. An identifier string that maps color and style to this syntax item.
•
wrap="true"
or
"false"
. Defines whether code coloring recognizes text strings that wrap to the next line. The
default is
"true"
.
Example
<stringStart name="Attribute Value" id="CodeColor_HTMLString"><![CDATA["]]></stringStart>