beautypg.com

Clean up microsoft word html files – Adobe Dreamweaver CC 2014 v.13 User Manual

Page 341

background image

Note:

To the top

Note:

Note:

Remove All Word Specific Markup

Because Related Files and Dynamically-Related Files can often be numerous, Dreamweaver lets you filter Related Files so that you can precisely
locate the files you want to work with.

1. Open a page that has Related Files associated with it.

2. Discover Dynamically-Related Files if necessary.

3. Click the Filter Related Files icon at the right side of the Related Files toolbar.

4. Select the types of files you want to see in the Related Files toolbar. By default, Dreamweaver selects all Related Files.

5. To create a custom filter, click the Filter Related Files icon and choose Custom Filter.

The Custom Filter dialog only allows for the filtering of exact file names (style.css), file extensions (.php), and wildcard expressions using
asterisks (*menu*). You can filter on multiple wildcard expressions by separating each expression with a semi-colon (for example,
style.css;*.js;*tpl.php).

Filter settings do not persist once you close the file.

Clean up Microsoft Word HTML files

You can open documents saved by Microsoft Word as HTML files, and then use the Clean Up Word HTML command to remove the extraneous
HTML code generated by Word. The Clean Up Word HTML command is available for documents saved as HTML files by Word 97 or later.

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.

To clean up HTML or XHTML that was not generated by Microsoft Word, use the Cleanup HTML command.

1. Save your Microsoft Word document as an HTML file.

In Windows, close the file in Word to avoid a sharing violation.

2. Open the HTML file in Dreamweaver.

To view the HTML code generated by Word, switch to Code view (View > Code).

3. Select Commands > Clean Up Word HTML.

If Dreamweaver is unable to determine which version of Word was used to save the file, select the correct version from the pop-up

menu.

4. Select (or deselect) options for the cleanup. The preferences you enter are saved as default cleanup settings.

Dreamweaver applies the cleanup settings to the HTML document and a log of the changes appears (unless you deselected that option in
the dialog box).

Removes all Microsoft Word-specific HTML, including XML from HTMLtags, Word custom metadata

and link tags in the head of the document, Word XML markup, conditional tags and their contents, and empty paragraphs and margins from
styles. You can select each of these options individually using the Detailed tab.

334

This manual is related to the following products: