Please enable JavaScript to view this site.

Altova MapForce 2022 Enterprise Edition

The Output pane, the XQuery pane, and the XSLT pane have multiple visual aids to make the display of text easier. These include:

 

Line Numbers

Syntax Coloring

Bookmarks

Source Folding

Indentation Guides

End-of-Line and Whitespace Markers

Zooming

Pretty-printing

Word wrapping

Text highlighting

 

Where applicable, you can toggle or customize the features above from the dialog box Text View Settings (see screenshot below). The settings in this dialog box apply to the entire application.

mf_dlg_text_view_settings_zoom70

To open the Text View Settings dialog box, do one of the following:

 

In the Output menu, select Text View Settings.

Click mf_ic_text_view_settings (Text View Settings) in the toolbar.

Right-click 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 reference to all applicable shortcuts, see the Key Map section of the Text View Settings dialog box shown above.

 

Line numbers

Line numbers are displayed in the line numbers 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.

 

Syntax coloring

Syntax coloring is applied according to 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.

 

Bookmarks

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.

mf_bookmarks_01_zoom70

You can edit and navigate bookmarks using the following commands:

 

mf_ic_bookmark_insert

Insert/Remove Bookmark (Ctrl + F2)

mf_ic_bookmark_next

Go to Next Bookmark (F2)

mf_ic_bookmark_prev

Go to Previous Bookmark (Shift + F2)

mf_ic_bookmark_delete

Delete All Bookmarks (Ctrl + Shift + F2)

 

The commands above are available in the Output menu and also through the context menu when you right-click the Output, XSLT or XQuery pane.

 

Source folding

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. 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.

mf_source_folding_zoom70

 

Indentation guides

Indentation guides are vertical dotted 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 markers and whitespace markers

End-of-line (EOL) markers and whitespace markers can be toggled on in the Text View Settings dialog box. The screenshot below shows a document where both end-of-line and whitespace markers are visible. The arrows represent tab characters. The CR abbreviation stands for a carriage return. The dots represent space characters.

mf_markers

 

Zooming in and out

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.

 

Pretty-printing

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 from the Text View Settings dialog box. To pretty-print an XML document, select the menu command Output | Pretty-Print XML Text or click mf_ic_pretty_print (Pretty-print) in the toolbar.

 

Word wrapping

To toggle word wrapping in the currently active document, select the menu command Output | Word Wrap or click mf_ic_word_wrap (Word Wrap) in the toolbar.

 

Text highlighting

When you select text, all matches in the document of the text selection that you make are highlighted automatically. The selection is highlighted in pale blue, and the matches are highlighted in light brown. The selection and its matches are indicated in the scroll bar by gray marker-squares. The current cursor position is given by the blue cursor-marker in the scroll bar. To switch on text highlighting, select Enable auto-highlighting in the Text View Settings dialog box. A selection can be defined to 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. In this case, one-character selection will not be matched, but a selection consisting of two or more characters will be matched. In this case, if you select t, no matches will be shown. Selecting ty will show all ty matches and so on. 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.

 

© 2015-2021 Altova GmbH