Use the following HTML Format preferences to control HTML formatting such as indent size, line length, and the case of element and attribute names as you create documents. See Editing the HTML source formatting profile for information on additional HTML formatting controls. To apply HTML formatting settings to existing HTML documents, use the Apply Source Formatting command. See Formatting the HTML source code in existing documents.
Indent Turns on indention of all tags marked INDENT
in the SourceFormat.profile. See Editing the HTML source formatting profile.
Use Specifies whether to indent using spaces or tabs.
Table Rows and Columns Automatically indents TR
and TD
tags to make reading table code easier. The Indent option must be checked for this option to work.
Frames and Framesets Automatically indents FRAME
and nested FRAMESET
tags to make reading frameset files easier. The Indent option must be checked for this option to work.
Indent Size Determines the size of indents (in spaces if Use is set to spaces, or in tabs if Use is set to tabs). For example, if Use is set to tabs and Indent Size is set to 4, tags will be indented using four tabs.
Tab Size Determines the size of tabs (measured in character spaces).
Note: If Indent Size is not a multiple of Tab size and Use is set to tabs, tags are indented using a combination of tabs and space characters.
Autowrap Wraps lines (with a hard return) once they reach the specified column width. By contrast, the Wrap checkbox in the HTML inspector adds a soft return for lines that extend beyond the width of the window.
Line Breaks Is useful for specifying the type of remote server (Windows, Macintosh, or Unix) to which you'll post your files. Choosing the correct type of line break characters ensures that your HTML source code appears correctly when viewed on the remote server. This setting is also useful when you are working with an external text editor that recognizes only certain kinds of line breaks. For example, use CR LF (Windows) if Notepad is your external editor, and CR (Macintosh) if SimpleText is your external editor.
Case for Tags and Case for Attributes Control the capitalization of element and attribute names.
Override Case Of Specifies whether to convert element and attribute names to the case you specified in the previous options when opening an existing HTML document. For example, if you always want to see element names in lowercase, specify lowercase element names and turn on this option. When you import a document that contains element names that are in uppercase, Dreamweaver converts them all to lowercase.
Centering Specifies whether elements should be centered using DIV ALIGN="center"
or CENTER
. Both are part of the HTML 4.0 Transitional specification, but CENTER
is supported by a wider range of browsers.