Xml/html formatting, Enabling/disabling xml/html formatting, Enabling/disabling globally – Slick EDIT V3.3 User Manual

Page 301: Xml/html formatting menu, Xml/html, Formatting, Caution

Advertising
background image

XML/HTML Formatting

Content in XML and HTML files may be set to automatically wrap and format as you edit. XML/HTML
Formatting is essentially comprised of two features: Content Wrap, which wraps the content between
tags, and Tag Layout, which formats tags according to a specified layout. Both can be activated individu-
ally for all XML and HTML files that are opened in SlickEdit

®

, or just for the current document.

Formatting schemes form the basis for how tags and content are formatted. A formatting scheme contains
any number of XML or HTML tags, each of which can be configured individually for indent levels, wrap-
ping, and tag structure. Multiple schemes can be defined—for example, you may want one scheme for
HTML files and another for XML files, or perhaps you are required to code certain files to various stand-
ards. Schemes can be saved and imported, so they can be shared with your team. Tags for each scheme
can be entered manually or you can import tags from the current file.

Caution

XML/HTML Formatting does not currently affect XML or HTML Beautifier settings. If you run the
beautifier on documents that have been automatically formatted through XML/HTML Formatting,
you may find unexpected results.

Enabling/Disabling XML/HTML Formatting

XML/HTML Formatting is on by default for XML and HTML files that you open in SlickEdit

®

. You can ac-

tivate and/or deactivate Tag Layout and/or Content Wrap for either file type on a global basis or on a per
document basis. Options to turn these features on/off are located on the Format

XML/HTML Format-

ting menu.

Figure 7.30. XML/HTML Formatting Menu

Enabling/Disabling Globally

Automatic formatting can be enabled or disabled for every XML and/or HTML file that is created or
opened in SlickEdit. These XML- and HTML-specific global options are toggled on/off by placing a check

Enabling/Disabling XML/HTML

Formatting

279

Advertising