Operators, Regexp, Sampletext – Adobe Extending Dreamweaver CS4 User Manual

Page 61

Advertising
background image

55

EXTENDING DREAMWEAVER CS4

Customizing Code view

<operators>

Description
A list of characters to be recognized as operators.

Attributes

name

,

id

name="operator_name"

A string that assigns a name to the list of operator characters.

id="id_string"

Required. An identifier string that maps color and style to this syntax item.

Example

<operators name="Operator" id="CodeColor_JavaOperator"><![CDATA[+-

*/%<>!?:=&|^~]]></operators>

<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 63.

Attributes

doctypes

doctypes="doc_type1, doc_type2,..."

The document types for which this sample text appears.

Advertising
This manual is related to the following products: