|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Editing Tag Attributes and Values
|
|
|
|
Studio offers a variety of editing tools that help you enter and edit tags more quickly and accurately:
- Tag Insight -- Popup menus that appear as you type tag and attribute names. You turn it on and off in the Tag Help pane of the Settings dialog box (F8).
- The Tag Inspector -- A property sheet-style display, that offers an interactive display of the current tag's attributes and values. Press F4 to open the Tag Inspector for the current tag, or choose the Tag Inspector pane in the Resources area.
- The Tag Tree -- An expandable tree view at the top of the Tag Inspector. It shows the tag hierarchy of all tags in the current document, a specific selection of tags (only CFML tags or only HTML 4.0 tags), or a customized selection you configure in an outline profile (only Table tags, for example).
- Tag Chooser -- Selection window for creating and editing tags. Choose Tools > Tag Chooser or right-click in the Edit window and choose Insert Tag.
- Tag Editors -- Dialog boxes for editing Tag attributes and values. To open a tag editor window, select the tag or click inside it, right-click and choose Edit Tag.
|
|
|
|
To edit tags and content:
|
|
|
- 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 (<).
- Press the space bar. When the Tag Insight is turned on, a popup menu appears showing the valid attributes for the current tag.
- 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.
- 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:
|
|
|
- Click inside a CFML tag and open the Tag Inspector in the Resources area.
- 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.
- 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.
|
|
|
  
|
|
|
AllaireDoc@allaire.com
Copyright © 1998, Allaire Corporation. All rights reserved.
|