Editing libraries, tags, and attributes

Editing libraries, tags, and attributes

You can use the Tag Library editor to set properties for a tag library and edit tags and attributes in a library--whether it be their attributes and attribute values, or their format (for easy identification in the code).

To set properties for a tag library:

  1. In the Tag Library editor (Edit > Tag Libraries), select a tag library (not a tag) in the Tags list.
  2. In the Used In list, select every document type that should use the tag library.

    The document types you select here determine which document types provide code hints for the given tag library. For example, if the HTML option is not selected for a given tag library, code hints for that tag library don’t appear in HTML files.

  3. If the tags in the tag library need a prefix, then enter the prefix in the Tag Prefix text box.
  4. If you are finished making changes in the Tag Library editor, click OK.

To edit a tag in a tag library:

  1. In the Tag Library editor (Edit > Tag Libraries), expand a tag library in the Tags list and select a tag.
  2. Set any of the following Tag Format options:

    Line Breaks specifies where Dreamweaver inserts line breaks for a tag.

    Contents specifies how Dreamweaver inserts the contents of a tag; that is, if it applies line break, formatting, and indentation rules to the content.

    Case specifies the case for a specific tag. Select from Default, Lowercase, Uppercase, or Mixed Case. If you select Mixed Case, the Tag Name Mixed Case dialog box appears. Type the tag with the case Dreamweaver should use when inserting it (for example, getProperty) and click OK.

    Set Default sets the default case for all tags. In the Default Tag Case dialog box that appears, select <UPPERCASE> or <lowercase>, and click OK.

To edit an attribute for a tag:

  1. In the Tag Library editor (Edit > Tag Libraries), expand a tag library in the Tags box, expand a tag, and select a tag attribute.
  2. In the Attribute Case pop-up menu, select Default, Lowercase, Uppercase, or Mixed Case.

    If you select Mixed Case, the Attribute Name Mixed Case dialog box appears. Type the attribute with the case Dreamweaver should use when inserting it (for example, onClick) and click OK.

    Click the Set Default link to set the default case for all attribute names.

  3. In the Attribute Type pop-up menu, select the type of the attribute.

    If you select Enumerated, type every allowed value for the attribute in the Values text box. Separate the values with commas, but no spaces. For example, the enumerated values of the showborder attribute of the cfchart tag are listed as yes,no.

Related topics

  • Managing tag libraries
  • Adding libraries, tags, and attributes
  • Deleting libraries, tags, and attributes


Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Setting Up Your Coding Environment
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly
 
ASPTreeView.com
 
Evaluation has јВКѕexpired.
Info...