Editing Application Pages  
 
 

Studio is designed to suit many different editing styles. Here are a few of the most common editing tasks:

  • Entering tags and content from scratch.
  • Adding CFML Expressions
  • Adding CFML Queries.
  • Importing content from other sources and applying new tags.
  • Changing existing tags and attributes.

Each type of task calls for different features and customizations. This section describes the basic editing techniques and then offers pointers to features and settings to help you work in the style that suits you best.

 
 
  Entering and editing text  
 
 

Use the tag and command tools on the toolbars and Quick Bar as you edit tags and text.

 
 
  To add text and tags from scratch:  
 
  1. Open a new document and click below the opening <BODY> tag.
  2. In the Quick Bar, select a tag tool, such as the Paragraph tool on the Standard toolbar.

    The opening and closing <P> tags appear, with your cursor blinking in between. If Tag completion is turned on, the closing tag appears when you finish typing the opening tag.

  3. Enter the tag's contents and press Enter.
  4. Right-click in the Edit window, and choose Insert Tag to open the Tag Chooser.
  5. Choose a tag and click Select. If you choose a tag that has a tag editor, such as H2, for example, the Tag Editor appears. Edit the tag entries as needed and click OK to insert the tag code in your document.

    If you choose a tag with no attributes, such as CENTER, the tag code appears in the Edit window.

 
 
  Inserting CFML Expressions  
 

ColdFusion Studio has an Expression Builder that helps you build and add CFML expressions to your ColdFusion application pages. The Expression Builder is a visual tool for choosing and combining functions, operators, and values into CFML Expressions.

 
 
  To build expressions:  
 
  1. Place the cursor at the point in the document where you want to insert the expression.
  2. Right-click and select Insert Expression or choose Tools > Expression Builder. You can open and close the list of Expression Elements to show or hide the functions, constants, operators, and variables.
  3. In the Functions list, choose an expression type to display the expression elements in the adjoining pane. For example, select Date and Time to see all the ColdFusion functions for manipulating date and time values.
  4. Double-click an element to add it to the element list.
  5. Add operators by clicking on them in the operator toolbar.
  6. Click Insert to add the expression in the current document.

See the Functions and Expressions chapter in the Advanced ColdFusion Development book for information about ColdFusion functions and expressions.

 
 
  Adding links  
     
 
  To add hypertext links:  
   
  1. Select the text you'd like to link and click the Anchor tool on the Standard toolbar.
  2. In the Anchor dialog box, enter the destination of the link, usually a URL or filename, in the HREF box.

    The selected text becomes a hyperlink.

 
 
  Adding text from other files  
     
 
  To add and edit text from another file:  
 
  1. To add content from another file, choose File > Insert File. Choose a file and click Open.

    The contents of the file are inserted in the current document.

  2. Select text you want to edit and use the Edit > Selection commands and editing tools to add tag codes as needed. For example, to add <BR> tags for line breaks, choose Edit > Selection > Add Line Breaks.
  3. Use the Edit menu commands to indent text, or convert tag case as needed. Use the Edit > Selection commands to convert text to lists or to a table.
 
 
  Editing individual tag blocks  
 

You can use shortcuts to quickly select and edit tag blocks:

  • To select an entire CFML tag block -- codes and content -- press CTRL and double-click.
  • To select a range of tag and text, click to place the cursor at the start of the selection, and press SHIFT-CTRL at the end of the selection block.
  • To drag and drop HTML from Internet Explorer 4.0, press CTRL while selecting text in Internet Explorer and drag it into Studio.


 
 
BackUp LevelNext
 
 

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