Setting code formatting preferences

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.

Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Setting Up Your Coding Environment
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly