XML

and Slick-C® . Note that by default, when creating a new comment, the Javadoc Editor is displayed for all file types except C#. To work around this limitation, start an XML comment with "///" and then right-click in the edit window and select Edit XML Comments.

Unknown XML tags are left "as is" and not removed.

XML Beautifier

To beautify XML source code, from the main menu click Format Beautify (or use the gui_beautify command). The XML Beautifier dialog appears, where you can specify preferences for how the code is beautified.

Caution

The XML Beautifier is not affected by XML/HTML Formatting. If you run the beautifier on docu- ments that have been automatically formatted through XML/HTML Formatting, you may find un- expected results.

You can use the commands xml_beautify or xml_beautify_selection to instantly beautify the file or the selection according to the settings on the Beautifier dialog.

Note

The XSD Beautifier contains the same options and settings as the XML Beautifier.

The following buttons and options are available on the Beautifier:

Beautify - Beautifies current selection or buffer and closes the dialog box.

Reset - Restores the dialog box settings to the values that appeared when you invoked the dialog.

Save Settings - Saves beautify options in uformat.ini file. These settings are used by the xml_beautify command.

Restrict to selection - When on, only lines in the selection are beautified.

Sync extension options - When on, the extension options are updated to reflect any changes that these dialogs have in common.

The tabs on the XML Beautifier are described in the sections below.

Indent Tab

Figure 7.16. XML Beautifier: Indent Tab

256

Page 278
Image 278
Slick V3.3 manual XML Beautifier, Indent Tab