Dreamweaver CS3 has a built-in โClear HTMLโ option in the Commands menu. I donโt think it is almost as comprehensive as HTML Tidy.
Clear code
You can automatically remove blank tags, combine nested font tags, and otherwise improve messy or unreadable HTML or XHTML code.
For information on how to clear HTML created from a Microsoft Word document, see "Open and edit existing documents."
Open the document:
- If the document is in HTML format, select> Clear HTML.
- If the document is in XHTML, select> Clear XHTML. - For an XHTML document, the Clean Up XHTML command corrects XHTML syntax errors, sets the case of tag attributes to lowercase, and adds or reports missing attributes for the tag in addition to performing HTML cleanup operations.
In the dialog that appears, select any of the options and click "OK." - Note. Depending on the size of your document and the number of options selected, it may take a few seconds to complete the cleanup.
Remove Container Tags Removes tags that have no content between them. For example, <b> </b> and <font color = "# FF0000"> </font> are empty tags, but the <b> tag in <ltb> some text </b> is not.
Remove Redundant Nested Tags Removes all redundant tag instances. For example, in the code <b> This is what I <b> really </b> wanted to say </b>, the b tags surrounding this word are really redundant and will be deleted.
Delete HTML comments without Dreamweaver Deletes all comments that were not inserted by Dreamweaver. For example, <! - start the main text โ will be deleted, but <! - TemplateBeginEditable name = "doctitle" โ wouldnt because his comment is Dreamweaver, which marks the beginning of the region being edited in the template.
Remove custom Dreamweaver markup . Deletes comments that Dreamweaver adds to the code to allow documents to automatically update when templates and library elements are updated. If you select this option when clearing code in a document based on a template, the document will be separated from the template. For more information, see Detach a document from a template.
Delete specific tags Deletes the tags specified in the adjacent text box. Use this option to remove custom tags inserted by other visual editors and other tags that you do not want to display on your site (for example, blink). Separate multiple tags with commas (e.g. font, blink).
Merge nested <font> Tags When possible Consolidate two or more font tags when they control the same range of text. For example, <font size = "7"> <font color = "# FF0000"> big red </font> </font> will be changed to <font size = "7" color = "# FF0000"> big red </ font>.
Show Registration Complete Displays a warning window with details of changes made to the document as soon as the cleaning is completed.