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.

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.

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.