I use Chrome for 99% of my work, but one application only works in IE. One major problem I have is that the 'View Source' option on XML documents opens the source Notepad, which always seems to screw up the encoding. I've found tutorials about changing the program used for viewing source for IE9, but in IE11 they've completely redesigned the F12 window and now there's not even a file menu at all.
How can I change the default application that 'View Source' uses in IE11?
21 Answer
Here’s a simple way to make Notepad++ work as the default HTML viewer for Internet Explorer, but not lose coloured HTML views. First create a batch file (say called np.bat) containing the following,
START "" "C:\Program Files (x86)\Notepad++\notepad++.exe" -lxml %1
save the batch file to this directory:
C:\Program Files (x86)\Notepad++
Next edit the registry key here to tell IE to use Notepad++ instead of Windows Notepad:
Computer\HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\View Source Editor\Editor Name
change the (Default) registry entry above to:
5"C:\Program Files (x86)\Notepad++\np.bat"