By default, IE will open the source code of a web page in another IE window, which is fine for most people. If you are a developer or programmer, you may want to use a different text editor or code editor to view the source code.
Depending on the version of IE you have installed, the method differs. From IE 8 to 10, it is very easy and you can change the default source code viewer within IE itself.
In IE 11, you must edit a registry key to make the change. It’s nothing important, but if you don’t like playing with the record, it’s annoying.
Change the IE Display Font Editor 8 to 10
It is very easy to change the editor in these versions of IE because Microsoft has incorporated the option in the browser itself. You have to open Developer Tools to access the option, which is very easy.
- You can press F12 on the keyboard or click Tools and then click Tools for developers.
- Another IE window will appear and you want to click here File, so Customize your Internet Explorer display source and then choose from the options.
- You can choose Notepad or click Others if you have a different code editor, you would like to use it. When you click Others, just look for the location of the program file (EXE) for your editor.
Change the view of the IE 11 source editor
In IE 11, you have to edit the registry to change the editor because they have now removed the option from the developer tools section.
Before modifying the registry, be sure to read my guide to back up the registry in case something goes wrong.
Now open the registry editor by clicking Start and typing regedit. Then go to the following key:
- Make sure you are under the CURRENT_USER key and not LOCAL_MACHINE, as it will not work if you edit the keys in the latter location. Several online tutorials mention the latter, but it is incorrect.
- Right-click Internet Explorer and click New and then Key.
- Name the new key See Font Editor and then press Enter. Now right-click the new View Font Editor key and choose again New and then Key.
- This key will be created in View Source Editor and you should give it a name Name of publisher. Your registry keys should look like the image below.
- In the right pane, double-click the icon By default key that has no set value. A la Value data , go ahead and set the path to the EXE file for the desired code editor. Be sure to put all the way in quotes as shown below.
- Click OK and you’re done. You can now open IE and make a display source, which should open in the desired code editor. No need to restart your computer or log off, the changes will take effect immediately.
The only thing I still haven’t figured out is how to change the Microsoft Edge source code editor, the new browser that comes with Windows 10. Once I can resolve this issue, I’ll update this post with the solution. If you have any questions, feel free to post a comment. Enjoy!