
20
For example, the Comment object takes text input from a text area in a dialog box, then uses a
simple JavaScript function to turn that text into an HTML comment and insert the comment
into your document. The form that describes the dialog box is in Configuration/Objects/
Invisibles/Comment.htm. You can open that file and change the size and other attributes of the
text area, but if you remove the
textarea tag entirely, or change the value of its name attribute,
the Comment object will no longer work properly.
Changing default HTML formatting
To change general code formatting preferences, use the Code Format category of the Preferences
dialog box. To change the format of specific tags and attributes, use the Tag Library Editor (Edit >
Tag Libraries). For more information, see Dreamweaver Help.
You can also edit the formatting for a tag by hand-editing the .vtm file corresponding to the tag
(in a subfolder of the Tag Libraries configuration folder), but it’s much easier to change
formatting within Dreamweaver.
If you add or remove a .vtm file, you must edit the TagLibraries.vtm file; Dreamweaver ignores any
.vtm file that isn’t listed in TagLibraries.vtm. (Edit this file in a text editor, not in Dreamweaver.)
For more information, see Extending Dreamweaver (Help > Extending Dreamweaver).
Working with browser profiles
Browser profiles are the files Dreamweaver uses to check your documents when you run a target
browser check (see Dreamweaver Help). Each profile contains information about the HTML tags
and attributes that a particular browser supports. A browser profile can also contain warnings,
error messages, and suggestions for tag substitutions.
Browser profiles are stored in the Configuration/BrowserProfiles folder within the Dreamweaver
application folder. You can edit existing profiles or create new ones using Dreamweaver or a text
editor (such as BBEdit, HomeSite, Notepad, or SimpleText). It is not necessary to quit
Dreamweaver before editing or creating browser profiles.
About browser-profile formatting
Browser profiles follow a specific format. To avoid parsing errors during target browser checks,
follow these rules when editing or creating profiles:
• The first line is reserved for the name of the profile. It must be followed by a single carriage
return. The name on this line appears in the Target Browser Check dialog box and in the target
check report. It must be unique.
• The second line is reserved for the designator PROFILE_TYPE=BROWSER_PROFILE.
Dreamweaver uses this line to determine which documents are browser profiles. Do not change
or move this line.
• Two hyphens (--) at the beginning of a line indicate a comment (that is, that the line will be
ignored during the target check process). A comment must start at the beginning of a line—
you can’t put two hyphens in the middle of a line.
• You must use a space in these places: before the closing angle bracket (>) on the !ELEMENT line,
after the opening parenthesis in a list of values for an attribute, before a closing parenthesis in a
list of values, and before and after each pipe (|) in a list of values.
• You must include an exclamation point without a space before each of the following words:
ELEMENT, ATTLIST, Error, and msg (!ELEMENT, !ATTLIST, !Error, !msg).
Comentários a estes Manuais