Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to open an HTML file in MS Word 2007 directly so I can use some of its search and replace features. I don't care about the file's encoding and will not actually use the final thing as HTML (I'm going to be extracting interesting parts). I want to see raw HTML. When I open the document, instead Word renders everything.

I am hoping someone knows how to do this from within Word without having to resort to copying and pasting or modifying the file to change the html tags to no longer look like html (such as {html> or something). I have been hit by this multiple times over the years and wish that I could fix the problem instead of always be forced to find a workaround.

Is there some option or setting, or something in the Open dialog that can change Word's behavior?

share|improve this question
1  
Why not use something like Notepad++, it has comparable search and replace (if not better)? –  techie007 Dec 29 '12 at 1:08
    
I will look into it, @techie007. –  ErikE Dec 29 '12 at 1:09
add comment

1 Answer

up vote 3 down vote accepted

You can turn off automatic file-type conversions in Word, and instead it will ask you what type of file you're trying to open, at which point you can pick Text.

To turn it off (or rather turn on Confirmation of conversion):

  1. Open the Word Options. (Word 2007: click the Office button and then click Word Options. Word 2010: display the File tab of the ribbon and then click Options)
  2. At the left side of the dialog box click Advanced.
  3. Scroll through the options until you see the General section.
  4. Make sure the Confirm File Format Conversion On Open check box is selected.
  5. Click on OK.

If you never want to open rendered HTML in Word again, you can also uninstall the HTML Filter by running Office Setup and de-selecting it form the installed options.

Alternatively and probably easiest: Use something else for the task, like a good Plain Text editor. I personally use and suggest Notepad++.

share|improve this answer
    
Thanks for the detailed and helpful answer! –  ErikE Dec 29 '12 at 1:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.