Adobe 38040334 - Dreamweaver CS3 User Manual page 206

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Is the
taglibrary.prefix
defined?
No
Yes
To define tags, Dreamweaver uses a modified version of the VTML file format. The following example demonstrates
all the elements that Dreamweaver must use to define an individual tag:
<tag name="input" bind="value" casesensitive="no" endtag="no">
<tagformat indentcontents="yes" formatcontents="yes" nlbeforetag nlbeforecontents=0
nlaftercontents=0 nlaftertag=1 />
<tagdialog file = "input.HTM"/>
<attributes>
<attrib name="name"/>
<attrib name="wrap" type="Enumerated">
<attriboption value="off"/>
<attriboption value="soft"/>
<attriboption value="hard"/>
/attrib>
<attrib name="onFocus" casesensitive="yes"/>
<event name="onFocus"/>
</attributes>
</tag>
The following table lists the attributes that define tags:
Attribute
tag.bind
tag.casesensitive
tag.endtag
tagformat
tagformat.indentcontents
tagformat.formatcontents
tagformat.nlbeforetag
Is the
tagref.prefix
defined?
Yes
Yes
Description
Used by the Data Binding panel. When you select a tag of this
type, the
bind
attribute indicates the default attribute for data
binding.
Specifies whether the tag name is case-sensitive. If the tag is case-
sensitive, it is inserted into the user's document using exactly the
case that the tag library specifies. If the tag is not case-sensitive, it
is inserted using the default case that is specified in the Code
Format tab in the Preferences dialog box. If
is omitted, the tag is assumed to be case-insensitive.
Specifies whether the tag has both an opening and a closing tag.
For example, the
input
tag has no closing tag; there is no
matching
tag. If the closing tag is optional, the
/input
attribute should be set to
Yes
syntax for an empty tag. For example,
endtag="xml" tagtype="empty">
Specifies the tag's formatting rules. In Dreamweaver versions
before Dreamweaver MX, these rules were stored in the
SourceFormat.txt file.
Specifies whether the contents of this tag should be indented.
Specifies whether the contents of this tag should be parsed. This
attribute is set to
No
for tags such as
which content is something other than HTML.
Specifies whether to insert a newline character before this tag.
The value 0 indicates no, and the value 1 indicates yes.
Resulting tag prefix
tagref.prefix
tagref.prefix
casesensitive
ENDTAG
.tag. Specify
to enforce XML
xml
<tag name="foo"
inserts
<foo/>.
SCRIPT
and
STYLE
, for
DREAMWEAVER CS3
Extending Dreamweaver
Mandatory/optional
Optional
Optional
Optional
Optional
Optional
Optional
Optional
200

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents