
84 Customizing Code View
Wildcard characters
The following is a list of wildcard characters that Dreamweaver supports, along with the
strings to specify them and descriptions of their usage.
Wildcard Escape
string
Description
Wildcard
\*
Skip all characters in the rule until the character that follows
the wildcard is found. For example, use
<MMTInstance:Editable name=”\*”>
to match all tags of this
type that have the name attribute specified.
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 whitespace
\s*
This matches zero or more white space or
newline characters.
For example,
<!--\s*#include is used to match ASP include
directives whether they have any white space preceding the
#include token or not because either case is valid.
The white space wildcards match any combination of white
space and newline characters.
Required
whitespace
\s+
This matches one or more white space or newline
characters.
For example,
<!--#include\s+virtual is used to match ASP
include directives with any combination of white space
between
#include and virtual. White space must be
specified between these tokens, but it can be any
combination of valid white space characters.
The white space wildcards match any combination of white
space and newline characters.
Comentarios a estos manuales