Setting code formatting preferences

You can change the look of your code by specifying formatting preferences such as indentation, line length, and the case of tag and attribute names.

Note that all the preferences except "Override Case Of" affect only new documents and new additions to existing documents. That is, when you open a previously created HTML document, these formatting options are not applied to it; to reformat existing HTML documents, use the Apply Source Formatting command. For more information, see Applying new formatting preferences to existing documents.

To set code formatting preferences:

  1. Select Edit > Preferences.
  2. Select Code Format from the Category list on the left.

    The Code Format preferences appear.

  3. Adjust any of the settings in the dialog box.

    For more information, see Setting the code format preference options.