Code Coloring Examples - MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Manual

Extending dreamweaver
Hide thumbs Also See for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER:
Table of Contents

Advertisement

Code coloring examples

The following code coloring examples illustrate the code coloring schemes for a cascading style
document and a JavaScript document. The lists of keywords in the JavaScript example are
abbreviated for the sake of keeping the example short.
CSS code coloring
<scheme
name="CSS" id="CSS" doctypes="CSS"
<ignoreCase>Yes</ignoreCase>
<ignoreTags>Yes</ignoreTags>
<blockStart
VB,ASP.NET_CSharp,ASP.NET_VB,ColdFusion,CFC,HTML,JSP,LibraryItem,DWTemplate
,PHP_MySQL"
<blockEnd><![CDATA[</style>]]></blockEnd>
<blockStart
VB,ASP.NET_CSharp,ASP.NET_VB,ColdFusion,CFC,HTML,JSP,LibraryItem,DWTemplate
,PHP_MySQL"
<blockEnd><![CDATA[</style>]]></blockEnd>
<commentStart
commentStart>
<commentEnd><![CDATA[*/]]></commentEnd>
<endOfLineComment><![CDATA[<!--]]></endOfLineComment>
<endOfLineComment><![CDATA[-->]]></endOfLineComment>
<stringStart
stringStart>
<stringEnd><![CDATA["]]></stringEnd>
<stringStart><![CDATA[']]></stringStart>
<stringEnd><![CDATA[']]></stringEnd>
<stringEsc><![CDATA[\]]></stringEsc>
<cssSelector
<cssProperty
<cssValue
<sampleText doctypes="CSS"><![CDATA[/* Comment */
H2, .head2
font-family : 'Sans-Serif';
font-weight : bold;
color : #339999;
}]]>
</sampleText>
</scheme>
CSS sample text
The following sample text for the CSS scheme illustrates the CSS code coloring scheme:
/* Comment */
H2, .head2
font-family
font-weight
color
}
The following lines from the Colors.xml file provide the color and style values that are seen in the
sample text and were assigned by the code coloring scheme:
<syntaxColor
<syntaxColor
<syntaxColor
doctypes="ASP-JS,ASP-
scheme="outerTag"><![CDATA[<style>]]></blockStart>
doctypes="ASP-JS,ASP-
scheme="outerTag"><![CDATA[<style\s+\*>]]></blockStart>
name="Comment"
name="String"
name="Selector" id="CodeColor_CSSSelector"
name="Property" id="CodeColor_CSSProperty"
name="Value" id="CodeColor_CSSValue"
{
{
: 'Sans-Serif';
: bold;
: #339999;
id="CodeColor_CSSSelector" text="#FF00FF"
id="CodeColor_CSSProperty" text="#000099"
id="CodeColor_CSSValue" text="#0000FF"
priority="50">
id="CodeColor_CSSComment"><![CDATA[/*]]></
id="CodeColor_CSSString"><![CDATA["]]></
/>
/>
/>
/>
/>
/>
Code coloring
105

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents