Adobe 38040334 - Dreamweaver CS3 User Manual page 14

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

Advertisement

For example, for JPEG files, enter the following:
4
Save the file.
Restart Dreamweaver.
5
To see the changes, select File > Open, and click the pop-up menu of file types.
Customizing the interpretation of third-party tags
Server-side technologies such as ASP, ColdFusion, JSP, and PHP use special non-HTML code in HTML files; servers
create and serve HTML content based on that code. When Dreamweaver encounters non-HTML tags, it compares
them with information in its third-party tag files, which define how Dreamweaver reads and displays non-HTML
tags.
For example, in addition to regular HTML, ASP files contain ASP code for the server to interpret. ASP code looks
almost like an HTML tag, but is marked by a pair of delimiters: it begins with
Configuration/ThirdPartyTags folder contains a file named Tags.xml, which describes the format of various third-
party tags, including ASP code, and defines how Dreamweaver displays that code. Because of the way ASP code is
specified in Tags.xml, Dreamweaver does not try to interpret anything between the delimiters; instead, in Design
view, it displays an icon that indicates ASP code. Your own tag database files can define how Dreamweaver reads and
displays your tags. Create a new tag database file for each set of tags, to tell Dreamweaver how to display the tags.
Note: This section explains how to define the way Dreamweaver displays a custom tag, but doesn't describe how to
provide a way to edit the content or properties of a custom tag. For information on how to create a Property inspector to
inspect and change the properties of a custom tag, see "Property inspectors" on page 210.
Each tag database file defines the name, type, content model, rendering scheme, and icon for one or more custom
tags. You can create any number of tag database files, but all of them must reside in the
Configuration/ThirdPartyTags folder to be read and processed by Dreamweaver. Tag database files have the .xml file
extension.
If you are working on several unrelated sites at once (for example, as a freelance developer), you can put all the tag
specifications for a particular site in one file. Then simply include that tag database file with the custom icons and
Property inspectors that you hand over to the people who will maintain the site.
You define a tag specification with an XML tag called
fication for a tag named
happy
<tagspec tag_name="happy" tag_type="nonempty" render_contents="false" content_model=
"marker_model" icon="happy.gif" icon_width="18" icon_height="18"></tagspec>
You can define two kinds of tags using
• Normal HTML-style tags
The
tag example is a normal HTML-style tag. It starts with an opening
happy
opening and closing tags, and ends with a closing
• String-delimited tags
String-delimited tags start with one string and end with another string. They are like empty HTML tags (such as
in that they don't surround content and don't have closing tags. If the
specification would include the
starts with the string
and ends with the string
<%
JPG,JPEG,JFIF:JPEG Image Files
tagspec
:
:
tagspec
</happy>
and
start_string
end_string
, and it has no closing tag.
%>
and ends with
<%
. For example, the following code describes the speci-
<happy>
tag.
tag were a string-delimited tag, the tag
happy
attributes. An ASP tag is a string-delimited tag; it
DREAMWEAVER CS3
Extending Dreamweaver
. The Dreamweaver
%>
tag, contains data between
img
8
)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents