The following excerpt from the Colors.xml file illustrates the hierarchy of tags in a code coloring
style file:
<codeColors>
<colorGroup>
<syntaxColor
<syntaxColor
<syntaxColor
...
<tagColor
<tagColor
<syntaxColor
...
</colorGroup>
</codeColors>
Colors are specified in red-green-blue (RGB) hexadecimal values. For example, the statement
text="009999"
"CodeColor_JavascriptNative"
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 styles file and the scheme
file:
<codeColoring>
<scheme
name="Text" id="Text" doctypes="Text"
<ignoreTags>Yes</ignoreTags>
<defaultText
<sampleText doctypes="Text">
<![CDATA[Default file syntax highlighting.
The quick brown fox
jumped over the lazy dog.
]]>
</sampleText>
</scheme>
<scheme
name="HTML" id="HTML" doctypes="ASP.NET_VB,ASP.NET_CSharp,ASP-JS,ASP-
VB,ColdFusion,CFC,HTML,JSP,EDML,PHP_MySQL,DWTemplate,LibraryItem,WML"
priority="50">
<ignoreCase>Yes</ignoreCase>
<ignoreTags>No</ignoreTags>
<defaultText
<defaultTag
<defaultAttribute />
<commentStart
]]></commentStart>
. . .
<tagGroup
name="HTML Anchor Tags" id="CodeColor_HTMLAnchor"
taglibrary="DWTagLibrary_html" tags="a"
<tagGroup
name="HTML Form Tags" id="CodeColor_HTMLForm"
taglibrary="DWTagLibrary_html" tags="select,form,input,option,textarea"
. . .
</codeColoring>
84
Chapter 5: Customizing Code View
id="CodeColor_HTMLEntity" bold="true" italic="true"
id="CodeColor_JavascriptNative" text="#009999"
id="CodeColor_JavascriptNumber" text="#FF0000"
id="CodeColor_HTMLStyle" text="#990099"
id="CodeColor_HTMLTable" text="#009999"
id="CodeColor_HTMLComment" text="#999999" italic="true"
in the preceding XML code assigns a blue-green (teal) color to the ID
.
name="Text" id="CodeColor_TextText"
name="Text" id="CodeColor_HTMLText"
name="Other Tags" id="CodeColor_HTMLTag"
name="Comment"
priority="1">
id="CodeColor_HTMLComment"><![CDATA[<!--
/>
/>
/>
/>
/>
/>
/>
/>
/>
/>
/>
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