User Guide
Customizing Dreamweaver 37
• equivalent_tag specifies simple HTML equivalents for certain ColdFusion form-related
tags. Not intended for use with other tags.
• is_visual indicates whether the tag has a direct visual effect on the page. For example, the
ColdFusion tag
cfgraph doesn’t specify a value for is_visual (so the value defaults to
"true"); the ColdFusion tag cfset is specified as having is_visual set to "false". Visibility
for server markup tags is controlled by the Invisible Elements category of the Preferences dialog
box; visibility for visual server markup tags can be set independent of visibility for nonvisual
server markup tags.
• server_model if specified, indicates that the tagspec tag applies only on pages belonging to
the specified server model. If server_model is not specified, the
tagspec tag applies on all
pages. For example, the delimiters for ASP and JSP tags are the same, but the
tagspec tag for
JSP specifies a server_model of
"JSP", so when Dreamweaver encounters code with the
appropriate delimiters on a JSP page, it displays a JSP icon. When it encounters such code on a
non-JSP page, it displays an ASP icon.
Contents
None (empty tag).
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
How custom tags appear in the Design view of the Document window depends on the values of
the
tag_type and render_contents attributes of the tagspec tag. (See “Customizing the
interpretation of third-party tags” on page 34.) If the value of
tag_type is "empty", the icon
specified in the
icon attribute appears. If the value of tag_type is "nonempty" but the value of
render_contents is "false", the icon appears as it would for an empty tag. The following
example shows how an instance of the
happy tag defined earlier 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 is set to "false" in the tag specification, the contents of the happy
tag (the word Joe) are not rendered; instead the start and end tags and their contents appear as a
single icon.
For nonempty tags that have a
render_contents value of "true", the icon does not appear in
the Design view; instead, the contents between the opening and closing tags (such as the text
between the tags in
<mytag>This is the contents between the opening and closing
tags</mytag>
) appears. If View > Invisible Elements is enabled, the content is highlighted using
the third-party tag color specified in Highlighting preferences. (Highlighting applies only to tags
defined in tag database files.)