
Customizing Dreamweaver
535
To create or edit a browser profile:
1
Using a text editor, open an existing profile.
If you’re creating a new profile, open the profile that most closely resembles the
profile you intend to create, then save the file under a new file name.
2
If you’re creating a new profile, change the name that appears on the first line of
text in the file.
Two profiles cannot have the same name.
3
Add any new tags or attributes you know to be supported by the browser, using
the syntax shown in “About browser-profile formatting” on page 532.
If you don’t want to receive error messages about a particular unsupported tag,
add it to the list of supported tags. If you do this, save the profile in a separate
file with a new file name (such as
Browsername x.x
limited). Renaming the
profile preserves the original profile with only the tags that are truly supported.
4
Delete any tags or attributes that are not supported by the browser.
This step is probably unnecessary if you are creating a profile for a new version
of Netscape Navigator or Microsoft Internet Explorer, because browsers rarely
drop support for tags.
5
Add any custom error messages according to the syntax shown in “About
browser-profile formatting” on page 532.
The profiles that come with Dreamweaver list all supported tags for the
specified browsers. To add a custom error message to a tag, add either
!msg
"
message
"
or
!htmlmsg
"<
tag
>
message
</
tag
>"
after
!Error
. For example,
this information appears in the Netscape Navigator 3.0 profile (along with
other attributes not shown here):
<!ELEMENT HR name="Horizontal Rule" >
<!ATTLIST HR
COLOR !Error
>
To add a custom error message enter
!msg:
and then your error message, in
quotation marks:
<!ELEMENT HR name="Horizontal Rule" >
<!ATTLIST HR
COLOR !Error !msg "Internet Explorer 3.0 supports the
COLOR tag in horizontal rules, but Netscape Navigator 3.0
does not."
>
6
You can use
!Error
for all error situations, or you can use
!Warning
to indicate
that a tag will be ignored but will not actually cause an error.
Summary of Contents for 38028779 - Macromedia Dreamweaver - Mac
Page 1: ...macromedia Using Dreamweaver...
Page 148: ...Chapter 4 148...
Page 296: ...Chapter 12 296...
Page 472: ...Chapter 18 472...
Page 512: ...Chapter 21 512...
Page 562: ...Appendix 562...