Before Internet Explorer 8, Notepad was set by default as the program that opened when you were trying to look at the underlying HTML of a web page; Internet Explorer 8 now ships with its own application / extension, shown on the screenshot below. To change the "View Source Editor" that opens in Internet Explorer, one used to either use a third-party application to set the new editor, or have to monkey around with the Windows Registry, using regedit. Fortunately, this is no longer the case, and Internet Explorer lets you change the view source editor in just a few clicks, as you'll learn in this tutorial.
Follow these simple steps to change the view source text editor in Internet Explorer 8:


C:\Program Files\" or "C:\Program Files (x86)\", locate the text editor / programming editor in question, and double-click on it:
HTML source of a web page:
...And this is all it takes to change the view source editor in Internet Explorer 8! You can of course go the old route and use a dedicated utility or go through the registry, but this is by far the easiest way to proceed. And you can use any text editor you want, as long as it can handle the argument Internet Explorer will pass (temporary internet file path).
Internet Explorer Tip: depending on your security settings and what version of Windows you have (Windows 7, Windows Vista, or Windows XP), you may see a security warning the first time you are trying to view source with the new editor - this is perfectly normal. Just click on the "Allow" button, and Windows will let Internet Explorer proceed: (and optionally check the "Do not show me the warning for this program again" checkbox to avoid seeing this dialog in the future).