Text View Features
The Output pane, the XQuery pane, and the XSLT pane have multiple visual aids to make the display of text easier: e.g., margins, text highlighting, indentation guides, end-of-line and whitespace markers. You can customize these features in the Text View Settings dialog box (see screenshot below). The settings in this dialog box apply to the entire application.
To open the Text View Settings dialog box, do one of the following:
•In the Output menu, select Text View Settings.
•Click (Text View Settings) in the toolbar.
•Right-click the blank area in the Output pane and select Text View Settings from the context menu.
Some of the navigation aids can also be toggled from the Text View toolbar, the application menu, or keyboard shortcuts. For more more information about shortcuts, see the Key map section of the Text View Settings dialog box shown above.
See the list of available settings below.
Line numbers are displayed in the line number margin, which can be toggled on and off in the Text View Settings dialog box. When a section of text is collapsed, the line numbers of the collapsed text are also hidden.
Lines in the document can be bookmarked for quick reference and access. If the Bookmark margin check box in the Text View Settings dialog box is selected, bookmarks are displayed in the bookmarks margin (see screenshot below). If the Bookmark margin check box is not selected, the bookmarked lines are highlighted in cyan.
You can edit and navigate bookmarks using the commands given in the table below. The commands are available in the Output menu and also through the context menu when you right-click the Output, XSLT or XQuery pane.
Source folding refers to the ability to expand and collapse nodes. This feature is displayed in the source folding margin. The margin can be activated or disabled in the Text View Settings dialog box. To expand or collapse portions of text, click the + and - nodes at the left side of the window. Any portions of collapsed code are displayed with an ellipsis symbol (see screenshot below). To preview the collapsed code without expanding it, hover over the ellipsis. This opens a tooltip that displays the previewed code, as shown in the screenshot below. Note that if the previewed text is too big to fit in the tooltip, an additional ellipsis appears at the end of the tooltip.
The Enable auto-highlighting setting allows you to see all the matches of the selected piece of text. The selection is highlighted in pale blue, and the matches are highlighted in light brown. The selection and its matches are indicated as gray marker-squares in the scroll bar. The current cursor position is shown as the blue cursor-marker in the scroll bar. A selection can be an entire word or a fixed number of characters. You can also specify whether case should be taken into account or not.
For character selection, you can specify the minimum number of characters that must match, starting from the first character in the selection. For example, you can choose to match two or more characters. For word searches, the following items are considered to be separate words: element names (without angular brackets), the angular brackets of element tags, attribute names, and attribute values without quotes.
Indentation guides are vertical lines that indicate the extent of a line's indentation. They can be toggled on and off in the Text View Settings dialog box. The Insert tabs and Insert spaces options take effect when you use the option Output | Pretty-Print XML Text.
End-of-line and whitespace markers (see screenshot below) can be toggled on in the Text View Settings dialog box. The arrows represent tab characters. The CR abbreviation stands for a carriage return. The dots represent space characters.
Syntax coloring is another visual aid that makes code listings more reader-friendly. Syntax coloring depends on the semantic value of the text. For example, in XML documents, depending on whether the XML node is an element, attribute, content, CDATA section, comment, or processing instruction, the node name (and in some cases the node's content) is colored differently.
You can zoom in and out by scrolling (with the scroll-wheel of the mouse) while holding the Ctrl key pressed. Alternatively, press the - or + keys while holding the Ctrl key pressed.
The Pretty-Print XML Text command reformats the active XML document in Text View to give a structured display of the document. By default, each child node is separated from its parent by four space characters. This can be customized in the Text View Settings dialog box. To pretty-print an XML document, select the menu command Output | Pretty-Print XML Text or click (Pretty-print) in the toolbar.
Word wrapping helps display a code listing within the borders of the working area. If the word wrap setting is not enabled, some portions of text may not be fully visible in the working area. To toggle word wrapping in the currently active document, select the menu command Output | Word Wrap or click (Word Wrap) in the toolbar.