Reading my usual RSS feeds i came upon the following post in the IEBlog: IE7 in Windows Vista: Configuring Your View Source Editor.

I don't run Vista, but what caught my eye was:

If you are looking for a better View Source Editor option than Notepad, install Microsoft Visual Web Developer 2005 Express Edition and add:

C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\VWDExpress.exe

to the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\View Source Editor\Editor Name

Which means add the following to a .reg file and run it:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\View Source Editor]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\View Source Editor\Editor Name]
@="C:\\Program Files\\Microsoft Visual Studio 8\\Common7\\IDE\\VWDExpress.exe"

Note: the actual download is quite large ~ 42mb, then a 30mb service pack for it. Quite hefty for just a view source editor

Anyhow this all worked fine and dandy, the speed it loads is instant which is fantastic (i wish the same could be said for Dreamweaver or eclipse (RadRails)), So I think that I will keep it as my view source handler.

The first issue I noticed when doing a view source of a ruby on rails application, Visual Web Developer wasn't sure what to do in the code highlighting department since the temp file it has opened had no extension.

There is a simple fix to this:
Tools -> Options -> 'Show all settings Text Editor -> File Extension -> Map extensionless files to: HTML Editor

VWD Dialog box

Sorry, comments are closed for this article.