Code Validation - MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Manual

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

Advertisement

alert("Word "
}
}
var tokens = new Array("Hello", "world");
displayWords(tokens);
]]></sampleText>
</scheme>
JavaScript sample text
The sample text for the JavaScript scheme illustrates the JavaScript code coloring scheme as
follows:
* JavaScript */
function
displayWords(arrayWords) {
for
(i=0; i
// inline comment
alert("Word "
}
}
var
tokens
=
displayWords(tokens);
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
<syntaxColor
<syntaxColor
<syntaxColor

Code validation

When opening a document in Code view, Dreamweaver automatically validates that the
document is not using any tags, attributes, CSS properties, or CSS values that are not available in
the target browsers that the user selected. Dreamweaver underlines errors with a wavy red line.
Dreamweaver stores browser profiles in the Browser Profile folder inside the Dreamweaver
Configuration folder. Each browser profile is defined as a text file that is named for the browser.
For example, the browser profile for Internet Explorer version 6.0 is Internet_Explorer_6.0.txt.
To support target browser checking for CSS, Dreamweaver stores CSS profile information for a
browser in an XML file whose name corresponds to the browser profile but with a suffix of
_CSS.xml. For example, the CSS profile for Internet Explorer 6.0 is
Internet_Explorer_6.0_CSS.xml. You might want to make changes to a CSS profile file if you
find that Dreamweaver is reporting an error that you do not want.
The CSS profile file consists of three XML tags:
following sections describe these tags.
+ i +
" is "
<
arrayWords.length();
+
i
+
" is "
new
Array("Hello", "world");
id="CodeColor_JavascriptComment" text="#999999" italic="true"
id="CodeColor_JavascriptFunction" text="#000000" bold="true"
id="CodeColor_JavascriptBracket" text="#000099" bold="true"
id="CodeColor_JavascriptNumber" text="#FF0000"
id="CodeColor_JavascriptClient" text="#990099"
id="CodeColor_JavascriptNative" text="#009999"
+ arrayWords[i]);
i++) {
+
arrayWords[i]);
css-support
/>
/>
/>
,
, and
property
value
Code validation
/>
/>
/>
. The
107

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents