The formatting preferences are used when the user presses the Format button on the Editor ToolBar or chooses
Edit->Format. The Standard Formatter indents elements and text, based on the tab width.
The Compact Formatter removes all unnecessary white space, including newlines. The Custom Formatter is intended for
one-off formating
and repeated use may lead to unexpected and undesired results. The Custom Formatter can insert new lines
(after every start and end tag), trim (strip whitespace at the start and end of text content), pad
(add extra white space at the start and end of text content) and indent tags and content. If any of the former options
are set, the
user can decide not to apply them to mixed content using the Preserve Mixed Content flag.
The Standard Formatter preserves mixed content, trims text, adds newlines and indents tags and text.
Note: Content for an element will not be changed when the xml:space="preserve" attribute has been used in the markup.
Formatting can be reversed using the Undo button (or by choosing Edit->Undo).
|