MACROMEDIA DREAMWEAVER 8-EXTENDING DREAMWEAVER Manual page 86

Extending dreamweaver
Table of Contents

Advertisement

Scheme precedence
Dreamweaver uses the following algorithm to color text syntax in Code view:
1.
Dreamweaver determines the initial syntax scheme based on the document type of the
current file. The file document type is matched against the
attribute. If no match is found, the scheme where
used.
2.
Schemes can be nested if they specify
that have the current file extension listed in one of the
enabled for the current file and all others are disabled.
All
blockStart/blockEnd
Schemes can nest within another scheme only if the
greater than the outer scheme. If the priority is equal, the scheme can nest only in the
body state of the outer scheme. For example, the
only inside the
<html>...</html>
string, comment, and so on.
Schemes with a higher priority than the outer scheme can nest almost anywhere within
the outer scheme. For example, in addition to nesting in the body state of the
<html>...</html>
comment, and so on.
The maximum nesting level is 4.
3.
When matching
blockStart
4.
After reaching the
state where the
blockStart
within an HTML string, then coloring resumes with the HTML string color.
86
Customizing Code View
blockStart
combinations should be unique.
block where tags are legal—not inside a tag, attribute,
block, the
<%...%>
strings, Dreamweaver always uses the longest match.
string for the current scheme, syntax coloring returns to the
blockEnd
string is detected. For example, if a
scheme.documentType
scheme.documentType = "Text"
...
blockEnd
blockStart.doctypes
scheme.priority
<script>...</script>
block can also nest inside a tag, attribute, string,
pairs. All nestable schemes
attribute are
is equal to or
block can nest
block is found
<%...%>
is

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver 8

Table of Contents