I figured I should briefly write up how to configure Firefox to view a page’s HTML source using TextMate rather than the built-in Firefox source viewer, since googling it didn’t turn up anything useful.
Install the ViewSourceWith extension.
Restart Firefox to complete the installation.
Open the ViewSourceWith settings by going to
Tools > Add-ons and double-clicking ViewSourceWith.
On the “Main” tab of the settings, by the “Editor list”, click “New”.
In the pane that appears, input this:
-a "TextMate" $f
If you installed the
mate command line utility with TextMate, you could optionally do this instead:
Settting the editor path to
/Applications/TextMate.app will, for whatever reason, open a new TextMate in the dock for every sourceview.
Confirm those settings.
If “Use in place of native message/page source menu item” is checked in the “Advanced” part of the settings, TextMate will replace the built-in source viewer. Otherwise, TextMate will be an option in
View > Source With. You might need to restart Firefox for changes to this value to kick in.