BackUp LevelNext

Editing Tag Attributes and Values

Studio offers a variety of editing tools that help you enter and edit tags more quickly and accurately:

To edit tags and content:

  1. Click inside an existing CFML tag, or create a new tag that takes attributes, for example, CFQUERY, and put the cursor before the closing angle bracket (<).
  2. Press the space bar. When the Tag Insight is turned on, a popup menu appears showing the valid attributes for the current tag.
  3. Choose an attribute, such as Datasource. The attribute appears, with your cursor waiting between quotation marks for you to enter a value.

    Tag Insight is especially useful when you're not sure of the available attributes or don't care to type out long attribute names.

  4. You can add additional attributes by pressing the space bar inside a tag.

Using Search and Replace

To find text or phrases in the current document or a set of documents, use the Search menu commands. See Chapter 22, Maintaining Web Applications for details on search and replace in Studio, including using regular expressions in your search strings.

Using the Tag Inspector and Tag Tree

You can use the Tag Inspector to edit existing attribute values or to add new ones. It is also very useful for editing tags that you create or modify -- see Customizing the Development Environment for information on creating your own tag editors.

To use the Tag Inspector:

  1. Click inside a CFML tag and open the Tag Inspector in the Resources area.
  2. Click in an attribute field and enter a value for the attribute.

    When you click outside the current field, the new tag value appears in your code.

  3. In the Tag Tree above the Tag Inspector, click on the + signs to expand the tag tree display. Use the Tag Tree to inspect and navigate the document's hierarchy.

Entering special characters

Because angle brackets and special characters are used in HTML coding, to display special characters on a Web page you must use character entities to display special characters on Web pages.

Studio automatically converts special characters to their corresponding character entity. You can turn this feature on and off in the Tag Help pane of the Settings dialog box (F8).

Also, you can use the Special Characters palette to add special characters to your documents. Choose View > Special Characters or select the Special Characters tool on the View toolbar to open this palette at the bottom of your Studio window.

Tag completion

When you're typing HTML and CFML tag codes, you can choose to have Studio "complete" the tag by adding a closing tag when you press the > key at the end of the opening tag.

This feature is most helpful when you are typing HTML and CFML codes and text at the same time, as opposed to editing isolated text and tags.

To turn Tag Completion on and off, use the Tag Completion check box in the Tag Help pane of the Settings dialog box (F8).

You can also refine the way the Tag Completion feature works by clicking the Tag Completion Settings button in the Tag Help pane and editing the list of tags on the tag completion list. You can also choose whether to include ASP tags in tag completion and whether to automatically close double quotes in attribute values.


BackUp LevelNext

allaire

AllaireDoc@allaire.com
Copyright © 1998, Allaire Corporation. All rights reserved.