Editing HTML in Dreamweaver > Setting code formatting preferences > Code Rewriting preferences

 

Code Rewriting preferences

Code Rewriting preferences determine what Dreamweaver does while opening HTML or script documents. (These preferences have no effect when you edit HTML or scripts in the Code view or Code inspector.) If you turn off these rewriting options, Dreamweaver displays invalid markup items in the Document window for HTML that it would have rewritten. If you are importing an HTML document from Microsoft Word, you can use the Clean Up Word HTML command to remove any unnecessary HTML code. For more information, see Cleaning up Microsoft Word HTML.

Fix Invalidly Nested and Unclosed Tags rewrites overlapping tags. For example, <b><i>text</b></i> is rewritten as <b><i>text</i></b>. This option also inserts closing quotation marks and closing brackets if they are missing.

Remove Extra Closing Tags deletes closing tags that have no corresponding opening tag.

Warn When Fixing or Removing Tags displays a summary of technically invalid HTML that Dreamweaver attempted to correct. The summary notes the location of the problem (using line and column numbers) so that you can find the correction and ensure it is rendering as intended.

Never Rewrite HTML: In Files with Extensions allows you to prevent Dreamweaver from rewriting HTML in files with the specified file name extensions. This option is particularly useful for files that contain third-party tags (such as ASP tags). For more information, see Avoiding rewriting third-party tags.

The two Special Characters options allow you control over whether Dreamweaver encodes certain characters in certain contexts. In general, it's best to leave these options selected unless your files contain certain third-party tags that use the characters in question. For more information on these options, see Avoiding rewriting third-party tags.