When trying to edit .html files on Windows XP, they open up in MS Word. Is there any reason that this is the default rather than something that is more lightweight and only deals with plain text and doesn't insert any sort of formatting/complex objects (such as Notepad)? Does Word really provide any extra benefit to editing .html files?

On a related note - how can this setting be changed to use something like Notepad, Wordpad, Notepad++, etc?

link|improve this question

feedback

1 Answer

up vote 4 down vote accepted

Windows itself doesn't set that association, Office does when it's installed. The reason, I suppose, is that Microsoft intended to make it so that editing HTML files was easier for 'regular people', and Word can (sort of) achieve that.

To change the 'Edit' association, you'll need to go into Windows's file types settings:

  1. Open any folder in Explorer (My Computer, for example)

  2. Go to Tools > Folder Options

  3. Go to the File Types tab

  4. Scroll to and then highlight HTM and/or HTML (you can just tap H on the keyboard probably)

  5. Click the Advanced button

  6. In the Edit File Type window, you will see 'Edit' listed under actions; make sure this is highlighted, and then click the Edit button

  7. In the action editing window, first untick 'Use DDE'

  8. Then, in the 'Application used to perform action' field, change the application path to the application you want to use. Leave the %1 at the end alone. So, for example, to change it to Notepad, you can do: "C:\Windows\notepad.exe" %1

  9. Click OK, OK, OK

link|improve this answer
4  
+1 I would suggest Notepad++ over Notepad for editing html files. – Ganesh R. Oct 26 '11 at 6:10
feedback

Your Answer

 
or
required, but never shown

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