MACROMEDIA DREAMWEAVER 8-EXTENDING DREAMWEAVER Manual page 25

Extending dreamweaver
Table of Contents

Advertisement

Container
None.
Example
<tagspec tag_name="happy" tag_type="nonempty" render_contents="false"
content_model="marker_model" icon="happy.gif" icon_width="18"
icon_height="18"></tagspec>
How custom tags appear in the Design view
The way that custom tags appear in the Design view of the Document window depends on
the values of the
tag_type
"Customizing the interpretation of third-party tags" on page
, the icon specified in the
"empty"
but the value of
"nonempty"
an empty tag. The following example shows how an instance of the
might appear in the HTML:
<p>This is a paragraph that includes an instance of the <code>happy</code>
tag (<happy>Joe</happy>).</p>
Because
render_contents
tag (the word
happy
appear as a single icon.
For nonempty tags that have a
in the Design view; instead, the content between the opening and closing tags (such as the
text between the tags in
closing tags</mytag>
highlighted using the third-party tag color specified in Highlighting preferences.
(Highlighting applies only to tags defined in tag database files.)
To change the highlighting color of third-party tags:
1.
Select Edit > Preferences, and select the Highlighting category.
2.
Click the Third-Party Tags color box to display the color picker.
3.
Select a color, and click OK to close the Preferences dialog box. For information about
selecting a color, see Using Dreamweaver.
and
render_contents
attribute appears. If the value of
icon
render_contents
is set to
"false"
) are not rendered. Instead, the start and end tags and their contents
Joe
render_contents
<mytag>This is the content between the opening and
) appears. If View > Invisible Elements is enabled, the content is
attributes of the
21.) If the value of
is
, the icon appears as it would for
"false"
in the tag specification, the contents of the
value of
"true"
Ways to customize Dreamweaver
tag. (See
tagspec
tag_type
is
tag_type
tag defined earlier
happy
, the icon does not appear
is
25

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?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver 8

Table of Contents