Notice that the
syntaxColor
values to an
string value. The
id
style to a scheme tag. For example, the
of
id
"CodeColor_HTMLComment"
"
CodeColor_HTMLComment"
Dreamweaver includes the following code coloring schemes: Default, HTML, JavaScript,
ASP_JavaScript, ASP_VBScript, JSP, and ColdFusion. The Default scheme has an
to
Dreamweaver uses the Default scheme for document types that do not have a defined
"Text".
code coloring scheme.
A code coloring file contains the following tags.
<scheme>
Description
The
tag specifies code coloring for a block of code text. You can have multiple schemes
scheme
within a file to specify 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.
Attributes
,
,
name
id
priority
•
name="scheme_name"
scheme name in the Edit Coloring Scheme dialog box. Dreamweaver shows a combination of
scheme name and field name, such as
for the scheme do not appear in the Edit Coloring Scheme dialog box. For more information
about the Edit Coloring Scheme dialog box, see
•
id="id_string"
•
priority="string"
the precedence of the scheme. Blocks that are inside blocks with higher priority are ignored;
blocks that are inside blocks with the same or lower priority take precedence. The priority
defaults to "50" if you do not specify one.
•
doctypes="doc_list"
which this code coloring scheme applies. This value is necessary to resolve conflicts in which
different start and end blocks use the same extensions.
Contents
,
blockEnd
blockStart
,
commentEnd
cssProperty
endOfLineComment
,
ignoreMMTParam
ignoreTags
,
searchPattern
stringStart
Container
The
codeColoring
Example
<scheme
name="Text" id="Text" doctypes="Text"
and
tagColor
value is then used in the codeColoring.xml file to assign a
id
defaultTag
. In the Colors.xml file, the
is assigned a
,
doctypes
A string that assigns a name to the scheme. Dreamweaver shows the
HTML Comment
Required. An identifier string that maps color and style to this syntax item.
The value ranges from "1" to "99". Highest priority is "1". Specifies
Optional. Specifies a comma-separated list of the document types to
,
,
brackets
charStart
,
cssSelector
,
,
entity
functionKeyword
,
keywords
,
stringEnd
tag.
tags in the Colors.xml file assign color and style
tag in the codeColoring.xml excerpt has an
id
value of
text=
"#999999"
. If you do not specify a name, the fields
"Editing schemes" on page
,
,
charEnd
charEsc
,
,
cssValue
defaultAttribute
,
,
idChar1
idCharrest
,
,
numbers
operators
,
,
stringEsc
urlProtocol
priority="1">
value of
, which is gray.
value equal
id
103.
,
,
commentStart
,
defaultText
,
,
ignoreCase
,
,
regexp
sampletext
,
urlProtocols
Code coloring
,
,
85
Need help?
Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?
Questions and answers