beautypg.com

Escape characters, Maximum string length – Adobe Extending Dreamweaver CS4 User Manual

Page 67

background image

61

EXTENDING DREAMWEAVER CS4

Customizing Code view

Escape characters

The following is a list of escape characters that Dreamweaver supports, along with the strings to specify them and
descriptions of their usage.

Maximum string length

The maximum length allowed for a data string is 100 characters. For example, the following

blockEnd

tag contains a

wildcard character.

Assuming the optional white space wildcard strings (

\s*

) are a single space character, which Dreamweaver generates

automatically, then the data string is 26 characters long, plus a wildcard string (

\*

) for the name.

Wildcard with escape
character

\e*x

Where

x

is the escape character.

This is the same as the wildcard, except that an escape character can be
specified. The character following any escape character is ignored. This lets
the character following the wildcard appear in the string without matching
the criteria to end wildcard processing.

For example,

/\e*\\/

is used to recognize a JavaScript regular expression

that starts and ends with a forward slash (/) and can contain forward slashes
that are preceded by a backslash (\). Because the backslash is the code
coloring escape character, you must precede it with a backslash when you
specify it in code coloring XML.

Optional white space

\s*

This matches zero or more white space or newline characters.

For example,