Using ColdFusion Studio
|
|
Chapter 8 : Editing Pages
|
Collapsing Text
When editing long documents or complex applications, you can hide text and code blocks so that you can focus on just a portion of the content. A customizable marker displays the first few characters of the collapsed selection.
Setting options
Open the Editor > Collapsed Text pane of the Settings dialog box (F8) to set options for this feature. Using these settings, you can:
- Customize the appearance of the collapsed text marker, including the font, foreground and background colors, and amount of text to display inside the marker (note that the number of characters actually displayed in the marker may vary if a proportional font is used).
- Enable a popup display of the full text when you move your mouse over the collapsed text marker. You can set the maximum number of lines to display in the popup box.
- Enable the automatic selection of text when a collapsed text section is expanded. This allows you to expand a collapsed region to view its contents, and then easily re-collapse it.
- Set file save/open options for the collapsed text.
 |
To collapse text in the current document use one of these commands:
|
- Select some text and click on one of the collapse buttons (-) that appear in the editor gutter.
- Right-click a selection of text and choose Collapse selection from the popup menu.
- Right-click in a start or end tag and select Collapse Tag. This collapses the entire tag body.
- Right-click in a start or end tag and select Collapse All Identical Tags. This collapses all tags which are the same as the current tag, including nested tags.
- Click on the blue plus sign <+> at the top of the Tag Inspector pane. This collapses the text based on the current Tag Inspector outline.
 |
To work with collapsed text:
|
- Double-click a collapsed text marker to expand the text.
- To expand all collapsed text, right-click anywhere in a document and select Expand All from the popup menu.
- You can drag and drop collapsed text just like regular text blocks.
- Collapsed text blocks can be nested within each other.
Copyright © 1999, Allaire Corporation. All rights reserved.
|
|