TextMate View Source from Internet Explorer

A quick registry script for using TextMate to view source from Internet Explorer.

Here’s the Microsoft documentation: http://msdn.microsoft.com/workshop/browser/configuration/clientreg/clientregistrylayout.asp

This assumes that you’re using Parallels 3 and the username Administrator

Windows Registry Editor Version 5.00 

; GOAL: Set TextMate as HTML editor in Internet Explorer 6.0 
; Windows version: XP 
; EASY USAGE: name this file iex-textmate.reg and double click on it 
; Hard Usage: IMPORT this file using REGEDIT.EXE found in c:\WINDOWS 
; Last modified date : Mon Jun 11 17:30:55 EDT 2007

; Be sure to also reset Explorer>Tools>Internet Options>Programs 

; Microsoft documentation 
; http://msdn.microsoft.com/workshop/browser/configuration/clientreg/clientregistrylayout.asp 


; Add TextMate in the list of supported HTML editors 
[HKEY_CLASSES_ROOT\.htm\OpenWithList\TextMate] 

[HKEY_CLASSES_ROOT\.htm\OpenWithList\TextMate\shell] 

[HKEY_CLASSES_ROOT\.htm\OpenWithList\TextMate\shell\edit] 
"FriendlyAppName"="TextMate" 

[HKEY_CLASSES_ROOT\.htm\OpenWithList\TextMate\shell\edit\command] 
@="\"C:\\Documents and Settings\\Administrator\\Application Data\\Parallels\\Shared Applications\\TextMate (Mac).exe\" \"%1\"" 


; OPTIONAL: Within Internet Explorer "View Source" with TextMate 
; but prefer to use Edit button (got to add this) on Toolbar 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Default HTML Editor] 
"Description"="TextMate" 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Default HTML Editor\shell] 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Default HTML Editor\shell\edit] 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Default HTML Editor\shell\edit\command] 
@="\"C:\\Documents and Settings\\Administrator\\Application Data\\Parallels\\Shared Applications\\TextMate (Mac).exe\" \"%1\"" 


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Default MHTML Editor] 
"Description"="TextMate" 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Default MHTML Editor\shell] 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Default MHTML Editor\shell\edit] 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Default MHTML Editor\shell\edit\command] 
@="\"C:\\Documents and Settings\\Administrator\\Application Data\\Parallels\\Shared Applications\\TextMate (Mac).exe\" \"%1\"" 


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

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\View Source Editor\Editor Name] 
@="C:\\Documents and Settings\\Administrator\\Application Data\\Parallels\\Shared Applications\\TextMate (Mac).exe" 

; ============================================= EOF