Adobe 38040334 - Dreamweaver CS3 User Manual page 51

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

DREAMWEAVER CS3
45
Extending Dreamweaver
The following excerpt from the CodeColoring.xml file illustrates the hierarchy of tags in a code coloring scheme file,
and it also illustrates the relationship between the code coloring styles file and the code coloring scheme file:
Notice that the
and
tags in the Colors.xml file assign color and style values to an
string
syntaxColor
tagColor
id
value. The
value is then used in the CodeColoring.xml file to assign a style to a scheme tag. For example, the
id
tag in the CodeColoring.xml excerpt has an
of
. In the Colors.xml file,
defaultTag
id
"CodeColor_HTMLComment"
the
value of "
is assigned a
value of
, which is gray.
id
CodeColor_HTMLComment"
text=
"#999999"
Dreamweaver includes the following code coloring schemes: Default, HTML, JavaScript, ASP
JavaScript,
_
ASP
_
VBScript, JSP, and ColdFusion. The Default scheme has an
value equal to
Dreamweaver uses the
id
"Text".
Default scheme for document types that do not have a defined code coloring scheme.
A code coloring file contains the following tags, described below:
scheme, blockEnd, blockStart, brackets, charStart, charEnd, charEsc, commentStart,
commentEnd, cssImport/, cssMedia/, cssProperty/, cssSelector/, cssValue/, defaultAttribute,
defaultTag, defaultText/, endOfLineComment, entity/, functionKeyword, idChar1, idCharRest,
ignoreCase, ignoreMMTParams, ignoreTags, isLocked, keyword, keywords, numbers/, operators,
regexp, sampleText, searchPattern, stringStart, stringEnd, stringEsc, tagGroup
<scheme>
Description
The
tag specifies code coloring for a block of code text. You can have multiple schemes within a file to specify
scheme
different coloring for different scripting or tag languages. Each scheme has a priority that lets you nest a block of text
with one scheme inside a block of text with a different scheme.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents