
word fixerupper.
So, you say you've got some Microsoft Word documents. And you say you'd like to put them into your web pages. Well there's a problem with that, but fortunately, there is also a solution. When you save a Word document as a .doc, .htm, .html, .mhtml file or whatever, the resulting code will be full of surprises — the kind of surprises that web servers, web browsers, and ultimately some of your viewing public will object to. Word is fine for word processing, but not very capable in the web department. Of course, you can just compose in Dreamweaver, and leave Word out of the equation. You can also compose in a plain text editor, like Notepad, or TextEdit on Mac. You can paste your word documents into either of those editors, and then copy and paste from them into Dreamweaver, thusly removing all of the offending Word formatting — but then you'll have to reformat it all in Dreamweaver. Wouldn't it be nice if there were a better way...
Dreamweaver has the capability to run 'commands'. 'Commands' are essentially a series of repeatable steps you can perform as one simple task. In this case, we want to remove all the proprietary Word code, and replace it with our own, valid, code and styles. Save the files below (right-click Windows, option-click Mac) onto your computer at the following location — Local Disk (C:)>Program Files>Macromedia>Dreamweaver MX 2004>Configuration>Commands>. Now if you have Dreamweaver running, you'll need to quit and restart it. From your open Word document, save as Web Page...>Web Page Filtered. Click 'OK' on the dialogue about losing Word formatting. Now, open up that saved document in Dreamweaver. From the Dreamweaver menu — Command>word_fixerupper. Now just keep clicking the 'OK' buttons until its finished. Now look at the code view. It should be all nice and clean. Just copy and paste everything between the <html...> and </html> tags and paste it into the content area of your page (using code view). Now return to design view and all should be well. You may, or may not, now notice a few things that require a bit of fudging. Fix 'em if need be and you're good to go.
grab the files.
Save these two files into the location described above . . .
(PC: right-click > Save link as...)(Mac: option-click > Save linked file to desktop)