Code beautifiers, available for many languages, reformat the layout of existing text based on settings that you specify, such as begin/end styles and indenting.
To beautify selected lines of code, or to beautify the entire buffer, from the main menu, click Format → Beautify (or use the gui_beautify command). A dialog box is displayed with functions specific to the type of project that is active. If an HTML project is active, then the HTML Beautifier dialog appears with options. If a GNU C/C++ project is active, then the C/C++ Beautifier dialog opens, and so on. Beautifying is supported for the languages listed below. Follow the cross-reference links to learn more about working with each beautifier.
Ada - See Ada Beautifier.
C/C++, C#, Java, JavaScript, Slick-CŪ - These beautifiers contain the same options and settings. See C/C++ Beautifier.
CFML, HTML - These beautifiers contain the same options and settings. See HTML Beautifier.
Javadoc - See Javadoc Beautifier Options Dialog.
XML, XSD - These beautifiers contain the same options and settings. See XML Beautifier.
To reflow text in the current paragraph according to your margin settings, click Format → Format Paragraph or use the reflow_paragraph command. Margin settings are defined on the language-specific Word Wrap options screen (see Language-Specific Word Wrap Options).
When you reflow a paragraph, the cursor will be kept at the same location within the current paragraph after reflow has occurred, unless the Reflow next option is changed (Window → SlickEdit Preferences → Editing → General). If Reflow next is set to Cursor on next paragraph, the reflow_paragraph command places the cursor on the next paragraph after it has reformatted the current paragraph.
Comments can also be reflowed according to the comment wrap settings. See Reflowing Comments for more information.