MXML Options
Spaces around equals
Set the number of spaces that should be placed on either side of an attribute '='.
Spaces before end of empty tag
Set the number of spaces that should be placed before the end /> of an empty tag.
Keep blank lines
If checked, blank lines between tags and inside tag data are preserved during a format. Carriage returns within a start or end tag are ignored. This option should rarely be unchecked.
Blank lines before tags
Use this table to add tags that should have blank lines inserted before each occurrence. Use the spinner to control the number of blank lines. Tags not listed won't have any blank lines before them, subject to the "Keep blank lines" setting.
Indent to first attr
If checked, indent wrapped attributes to line up with the first attribute in the tag. If not checked, wrapped lines are indented one tab.
Configure attribute order
This button brings up a dialog lets you reorder mxml attributes during a Format.
Default attribute wrap options
Wrap options
Determine how you want the attributes to be wrapped.
- No wrap
Don't add any additional line breaks beyond what's specified in the table.
- Wrap to max line length
Break lines when they get longer than the maximum line length. This is not applied to the items in the custom ordering table before the last configured newline, unless you have defined an attribute group and have specified to use the 'Default' wrapping for the group.
- Attrs per line
Break lines after the given number of attributes. This is not applied to the items in the custom ordering table before the last configured newline, unless you have defined an attribute group and have specified to use the 'Default' wrapping for the group.
Text content within tags
There are two tables here. Tags listed in neither of these tables will be formatted with the default strategy. The default
strategy is to not modify the text content of a tag if it contains any non-whitespace characters. This is the normal case
of no text content.
- Tags to never format - These are tags whose text content should not have their whitespace modified at all. The default
case here is the tag, where the start and end tag are typically located on the same line, and whitespace is
significant. Add other tags to this list as needed.
- Tags to always format - These are tags where whitespace is not meaningful in the text content. This is the case for the mx:List tag (AFAIK), where blank lines and leading and trailing whitespace are ignored.
Add other tags to this list as needed.
Restore defaults to both tables
This button repopulates the two list boxes. The Restore Defaults button does not affect these lists, although their contents are stored
with the formatter preferences, and an Import/Export operation does set/save their contents.