How to set Internet Explorer 8 View Source Tool/Editor

IE8 includes a new syntax highlighting View Source tool similar to what is available in other web browsers. However, you may not want to use the built-in, view-only tool. It’s easy to change.

1)

Start Internet Explorer 8 if it isn’t already started. Within IE8, click the Tools menu, then select Developer Tools (or just press [F12]).

image

2) Then, from the developer tools, select File, Customize Internet Explorer View Source, and then Other….

image

A file open dialog is displayed. Navigate to the application you want to use … for example Visual Studio 2008:

image

That’s it!

 

Note (how to completely reset Internet Explorer 8 View Source option):

When I first installed IE8, after having installed earlier builds of IE8 (beta and RC), I wasn’t able to reset the view source option back to the Default Viewer. (I’ve later noticed that even after selecting Default Viewer, it never actually leaves the Default Viewer option selected, even if that is the current option). After some registry hunting, you may need to clear out a registry setting that is incorrectly set.

HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Microsoft\Internet Explorer\View Source Editor\Editor Name

image

The Key’s (Default) value was set to Notepad on my machine, which would cause IE8 to always use Notepad to view source, even though I wanted to use the built-in view source option. I cleared the value (but did not remove the key) and everything began working as normal again. Using the menu option within the developer tool’s in IE8 does not appear to set this value correctly, even though it is used as a potential supplying key/value.

Hope this helps someone!