
Working with Tag Definitions
107
3
If you want the current document’s type to receive the highest priority regardless
of the precedence set in this pane, select Current document’s namespace receives
highest priority.
For information about how a document’s namespace is determined, see
“How a
language is detected” on page 85
.
4
If you need the namespace to be treated as an
XML
application; for example, to
disallow minimized boolean attributes such as
<dl compact>
(instead of
<dl
compact="compact">
), then select XML Based for the namespace.
5
Click Apply.
You can click Reset to Defaults at any time to reset the list to its default values.
Editing tag definitions
You can change a tag’s definition from the Tag Inspector, but the preferred method
for changing a tag definition is to edit the VTM file directly using VTML tag editors.
To edit a tag definition using VTML tag editors:
1
Open the VTM file from the appropriate language folder in \Extensions\TagDefs.
2
Right-click a tag, and select Edit Tag to change its attributes and values.
This method supports tag editors, Tag Inspector, Tag Insight, and Tag Tips, and also
ensures that Large Fonts display properly on user systems.
To edit a tag definition using Tag Inspector:
1
Click the Edit Tag Definitions button to open the Tag Definitions Library dialog
box. The left pane lists all of the installed languages. You can edit the definitions
list by using the Add and Remove buttons.
2
Expand a language entry to view individual tags. When you select a tag, the
attributes and other components defined in its VTM file appear in the tabbed
pane.
3
Make changes in the tag definition fields and click Done to save the changes.
This method has limitations, and it might cause the tag’s editor to not work properly.
Be sure to backup the VTM file before making changes.
To create a tag definition, do one of the following:
•
Modify an existing VTM file and save it as the new tag. This is the best way to
create a tag definition file.
•
Use the skeleton tag definition file, \Extensions\TagDefs\TagDefTemplate.vtm, as
a starting point for creating your own tag.
•
Create a tag definition from the Tag Inspector. In this case the new tag does not
support a tag editor.
To add online help for the tag, create an HTML file containing the help text and save
it with the tag name in the appropriate language folder in \Extensions\Docs.
Содержание ColdFusion Server 5
Страница 18: ...xviii About This Book...
Страница 26: ...8 Chapter 1 Setting Up the Product...
Страница 42: ...24 Chapter 2 Configuring Browsers and Servers...
Страница 60: ...42 Chapter 3 Exploring the Workspace...
Страница 100: ...82 Chapter 6 Editing Pages...
Страница 126: ...108 Chapter 7 Using Web Development Languages...
Страница 212: ...194 Chapter 13 Customizing the Development Environment...
Страница 320: ...302 Glossary...