Whenever you open the source of any webpage in Internet Explorer, it opens the source code with Notepad but format is not viewed in notepad. So, I will let you know how to do it:-
1. Copy and paste the following code in Notepad:-
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerView Source EditorEditor Name]
@=”wordpad.exe”
2. Replace “wordpad.exe” in the code to the location of your editor with double slashes.
3. In notepad click on File-> Save as… and save the file with any name and the extension .REG. eg. “test.reg”
4. Now double-click on the file you have saved and click on Yes.
Note: Your default source editor in Internet Explorer will be changed to wordpad.