Adobe 38040334 - Dreamweaver CS3 User Manual page 50

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

Advertisement

DREAMWEAVER CS3
44
Extending Dreamweaver
Dreamweaver provides the JavaScript function
, which enables you to
dreamweaver.reloadCodeColoring()
reload code coloring XML files that might have been edited manually. For more information on this function, see
the Dreamweaver API Reference.
To update a code coloring scheme or add a new scheme, you must modify the code coloring definition files.
Code coloring files
Dreamweaver defines code coloring styles and schemes in XML files that reside in the Configuration/CodeColoring
folder. A code coloring style file defines styles for fields that are defined in syntax definitions. It has a root node of
. A code coloring scheme file defines code coloring syntax and has a root node of
.
<codeColors>
<codeColoring>
The code coloring style file that Dreamweaver provides is Colors.xml. The code coloring syntax files that Dream-
weaver provides are CodeColoring.xml, ASP JavaScript.xml, ASP VBScript.xml, ASP.NET CSharp.xml, and
ASP.NET VB.xml.
The following excerpt from the Colors.xml file illustrates the hierarchy of tags in a code coloring style file:
Colors are specified in red-green-blue (RGB) hexadecimal values. For example, the statement
in the
text="009999"
preceding XML code assigns a blue-green (teal) color to the ID
.
"CodeColor_JavascriptNative"

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents