Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: HTML associated with Word in Context Menu (Edit option)

18 Oct 2013   #1
lehnerus2000

W7 Ultimate SP1, LM18 MATE, W10IP VM, W10 Home, #All 64 bit
 
 
HTML associated with Word in Context Menu (Edit option)

I'm sure someone has asked this before, but a brief search didn't seem to have a thread that looked helpful.

Today I clicked "Edit" in the context menu for a HTML file, just to check some code I'd written.
I expected Notepad to open, but Word opened instead.

I had a brief look at the Registry entries (HKEY_CLASSES_ROOT\.html) but I couldn't determine why Word was opening.
Click picture for animation
HTML associated with Word in Context Menu (Edit option)-file-association-edit-html-files-.gif
I would prefer that Notepad open, if I choose "Edit" in the context menu for a HTML file.

Does anyone know:
  • Which thread/tutorial I should check?
  • The Registry hack required to accomplish the change I want?
Note:
Notepad would only be used for "viewing" html files.
I use Notepad++ for actual html, css, js and php editing.

I often click "Edit" instead of "Edit with Notepad++".




My System SpecsSystem Spec
.
18 Oct 2013   #2
Brink

64-bit Windows 10 Pro
 
 

Hello Peter,

If you like, using the tutorial below to download and merge the .reg file for the listed html option will restore it's default associations to also have Edit open with Notepad again. You'll need to set Open with to use what program your wanted other than the default Internet Explorer again afterwards though.

Default File Type Associations - Restore

Hope this helps.
My System SpecsSystem Spec
18 Oct 2013   #3
lehnerus2000

W7 Ultimate SP1, LM18 MATE, W10IP VM, W10 Home, #All 64 bit
 
 
Thanks Brink

Quote   Quote: Originally Posted by Brink View Post
Hello Peter,

If you like, using the tutorial below to download and merge the .reg file for the listed html option will restore it's default associations to also have Edit open with Notepad again. You'll need to set Open with to use what program your wanted other than the default Internet Explorer again afterwards though.

Default File Type Associations - Restore

Hope this helps.
I guess that would be the simplest way.
I was hoping that I could do it without doing a restore default association.

I was thinking that if I did a manual Registry hack, I could store the procedure in my files and use it as a "template" in the future for other file types.

Sorry, I'm not allowed to Rep you.
My System SpecsSystem Spec
.

18 Oct 2013   #4
Brink

64-bit Windows 10 Pro
 
 

No worries.

By deault, all text file types like these (html, cmd, bat, vbs, etc...) will edit with notepad.

Here's the basics though:

While in regedit, go the HKCR key for the text editable file extension (ex: html) to see what it's (Default) value is set for (ex: htmlfile).

HTML associated with Word in Context Menu (Edit option)-html.jpg

You would then scroll down to it (ex: htmlfile) in HKCR past the other file extensions. Expand the sat htmlfile until you get to it's Shell -> Edit -> command subkey like below. In the command subkey, you could set it's (Default) value to use the full path of .exe file within quotes of the program you wanted to edit with instead.

Example:

For default = notepad.exe %1

For example program = "C:\Program Files\Example\program.exe" %1


HTML associated with Word in Context Menu (Edit option)-htmlfile.jpg


My System SpecsSystem Spec
19 Oct 2013   #5
lehnerus2000

W7 Ultimate SP1, LM18 MATE, W10IP VM, W10 Home, #All 64 bit
 
 
Perfect

Thanks Brink.


I thought that it was a simple hack.
I remember that I did something similar with XP, but I couldn't remember the details.
My System SpecsSystem Spec
19 Oct 2013   #6
Brink

64-bit Windows 10 Pro
 
 

You're most welcome Peter.
My System SpecsSystem Spec
Reply

 HTML associated with Word in Context Menu (Edit option)




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
NEW Context Menu - Edit for Desktop
How to Edit the Desktop "NEW" Context Menu in Windows 7 This tutorial shows you how to do this BEFORE AFTER
Tutorials
How to restore context menu to default or how it was before you edit?
Suppose I used: "Edit" Context Menu - Change Default Program in Windows To man an edit or two. Isn't there a backup or restore function somewhere?
Customization
Can I edit the Context Menu?
Hello! I have a little question for you guys here. I am wondering if it's possible to edit the Context Menu in Windows 7 (when you right click on a file or folder)? I want to delete "Play with vlc" and "scan with bla bla" etc. Simpleness is the key to success! I also want to delete or disable...
Customization
Edit folder context menu?
http://wimg.co.uk/z5Z.jpg Can it be done? I haven't had much luck with ShellExView I don't want to uninstall WMP since I use it for it's Play-To feature.
Customization
Can't fully edit context menu
Been able to zap some items from the New context menu, but a few still remain. I've read the tutorials here, searched the registry, I've got ShellExView, ShellMenuView and Glary Pro. They've helped, but not the 7 things below the red bar here, which is what I want to eliminate: ...
Customization
Easy tool to edit context menu?
Hey there, is there any easy to use tool to edit context menu entries? E.g. I'm not able to get rid of all the "buy music online" and WMP-Entries myself. I tried deleting the particular registryentries ... :( I know shellexview but this is kind a weird since I don't want to +mess up...
Customization


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 17:32.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App