MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Uživatelský manuál Strana 25

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 28
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 24
Customizing Macromedia Dreamweaver MX 25
tag_name The name of the custom tag. For string-delimited tags, tag_name is used only to
determine whether a given Property inspector can be used for the tag. If the first line of the
Property inspector contains this tag name with an asterisk on each side, then the inspector can be
used for tags of this type. For example, the tag name for ASP code is
ASP; Property inspectors that
can examine ASP code should have
*ASP* on the first line. For information on the Property
inspector API, see Extending Dreamweaver (Help > Extending Dreamweaver).
tag_type* Determines whether the tag is empty (as with img), or whether it contains anything
between its opening and closing tags (as with code). This attribute is required for normal (non-
string-delimited) tags. It’s ignored for string-delimited tags, since theyre always empty. Valid
values are
"empty" and "nonempty".
render_contents* Determines whether the contents of the tag should appear in the
Document windows Design view, or whether the specified icon appears instead. This attribute is
required for nonempty tags, and ignored for empty tags. (Empty tags have no content.) This
attribute applies only to tags that appear outside of attributes; the contents of tags that appear
inside the values of attributes of other tags are not rendered. Valid values are
"true" or "false".
content_model* Describes what kinds of content the tag can contain and where in an HTML
file the tag can appear. Valid values are
"block_model", "head_model", "marker_model", and
"script_model":
block_model Specifies that the tag can contain block-level elements such as div and p, and
that the tag can appear only in the body section or inside other body-content tags such as div,
layer, or td.
head_model Specifies that the tag can contain text content, and that it can appear only in the
head section.
marker_model Specifies that the tag can contain any valid HTML code, and that it can
appear anywhere in an HTML file. The HTML validator in Dreamweaver ignores tags that are
specified as
marker_model. However, the validator doesnt ignore the contents of such a tag; so
even though the tag itself can appear anywhere, the contents of the tag may result in invalid
HTML in certain places. For example, plain text cant appear (outside of a valid
head element)
in the
head section of a document, so you cant place a marker_model tag that contains plain
text in the head section. (To place a custom tag containing plain text in the head section,
specify the tags content model as
head_model instead of marker_model.) Use marker_model
for tags that should be displayed inline (inside a block-level element such as
p or div—for
example, inside a paragraph). If the tag should be displayed as a paragraph of its own, with line
breaks before and after it, dont use this model.
script_model Allows the tag to exist anywhere between the opening and closing HTML tags
of a document. When Dreamweaver encounters a tag with this model, it ignores all of the tags
content. Used for markup (such as certain ColdFusion tags) that Dreamweaver shouldnt parse.
start_string Specifies a delimiter that marks the beginning of a string-delimited tag. String-
delimited tags can appear anywhere in the document where a comment can appear. Dreamweaver
does not parse tags or decode entities or URLs between
start_string and end_string. This
attribute is required if
end_string is specified.
end_string Specifies a delimiter that marks the end of a string-delimited tag. This attribute is
required if
start_string is specified.
Zobrazit stránku 24
1 2 ... 20 21 22 23 24 25 26 27 28

Komentáře k této Příručce

Žádné komentáře