
Chapter 14
348
Formatting the HTML source code in existing documents
The HTML source formatting options that you specify in HTML Format
preferences and the SourceFormat.txt file apply only to any subsequent new
documents that you create with Dreamweaver. To apply these formatting options
to existing HTML documents, use the Apply Source Formatting command.
To apply HTML source formatting options to an existing document:
1
Choose File > Open to open an existing HTML file in the Document window.
2
Choose Commands > Apply Source Formatting.
Cleaning up Microsoft Word HTML
In Dreamweaver, you can open or import documents saved by Microsoft Word
as HTML files, then use the Clean Up Word HTML command to remove the
extraneous HTML code generated by Word. The code that Dreamweaver removes
is primarily used by Word to format and display documents in Word and is not
needed to display the HTML file. Retain a copy of your original Word (.doc) file
as a backup, because you may not be able to reopen the HTML document in
Word once you’ve applied the Clean Up Word HTML feature. The Clean Up
Word HTML command is available for documents saved as HTML files by
Word 97 or later.
To clean up Word HTML:
1
In Microsoft Word, save your document as an HTML file.
2
Open the HTML document in Dreamweaver using either of the
following methods:
•
Choose File > Import > Import Word HTML and select a file to open.
Dreamweaver opens the file and then automatically opens the Clean Up Word
HTML dialog box.
•
Choose File > Open and select a file to open.
An HTML Corrections log file is automatically generated if Warn when Fixing
or Removing Tags is selected in HTML Rewriting preferences. This is not part
of the Clean Up Word HTML feature. Click Continue to exit the dialog box.
Then, in Dreamweaver, choose Commands > Clean Up Word HTML.
3
With either of these methods, there may be a slight delay while Dreamweaver
attempts to determine which version of Word was used to save the file. If
Dreamweaver is unable to determine this, select the correct version using
the pop-up menu.
Содержание 38028779 - Macromedia Dreamweaver - Mac
Страница 1: ...macromedia Using Dreamweaver...
Страница 148: ...Chapter 4 148...
Страница 296: ...Chapter 12 296...
Страница 472: ...Chapter 18 472...
Страница 512: ...Chapter 21 512...
Страница 562: ...Appendix 562...