MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Especificaciones Pagina 21

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 504
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 20
Ways to customize Dreamweaver 21
Customizing the interpretation of third-party tags
Server-side technologies such as ASP, Macromedia 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
<% and ends with %>. The Dreamweaver 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.
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.
You define a tag specification with an XML tag called
tagspec. For example, the following
code describes the specification 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 tagspec:
Normal HTML-style tags
The
happy tag example is a normal HTML-style tag. It starts with an opening <happy>
tag, contains data between opening and closing tags, and ends with a closing </happy>
tag.
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 Chapter 12, “Property Inspectors,” on page 279.
TIP
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.
Vista de pagina 20
1 2 ... 16 17 18 19 20 21 22 23 24 25 26 ... 503 504

Comentarios a estos manuales

Sin comentarios