The Preferences dialog box’s Code Format category sets the code formatting options for the HTML code visible in Code view (View → Code View) and the Code Inspector. The preferences determine the formatting applied to new documents and additions to existing documents. Existing documents, including documents created outside Dreamweaver, can be reformatted by using the Commands → Apply Source Formatting menu command. Beyond the options available in the Dreamweaver preferences, HTML source formatting is controlled by the SourceFormat.txt file in the Dreameaver4/Configuration folder as described in the next section.
The following preferences can be set in the Code Format preferences:
The Indent option turns on indentation for tags with the
indent attribute in the SourceFormat.txt file.
Select whether to indent code segments using Spaces or Tabs.
Sets the number of spaces (if Use is set to Spaces) or tabs (if Use is set to Tabs) to indent text with the Text → Indent command.
Sets the width of tab stops (defaults to four characters). Tab stops are used when pressing the Tab key or when indenting code automatically (if Use is set to Tabs).
If enabled, inserts a hard carriage return if a line of HTML code reaches the specified width.
Specifies the line break format: CR LF (Windows), ...