I've just configured Firefox to allow me to use TextMate to edit any TextArea.
At first I tried to follow the somewhat confusing instructions on the TextMate Wiki, which require you to combine an unofficial hacked version of the Mozex 1.07 extension with Mozex-helper, a Python+C hack. Fortunately, with the recent pre-release of Mozex 2.0 the whole process has become much simpler:
- Install the Mozex 2.0 extension (pre-release version) and restart Firefox
- Go to "Tools > Extensions", right-click on Mozex and choose Preferences
- In the "General" tab, put "/private/tmp" in the "Directory for temporary files" field
- In the "Textarea" tab put "/.../TextMate.app/Contents/Resources/mate -w %t", replacing the dots with the actual path to your TextMate application, probably "/Applications"
- Optionally, you may want to check the "Edit textbox in UTF-8" box.
Now all you have to do to edit any Textarea using Textmate is right-click on it, choose "Mozex > Edit Textarea", edit the text, save your file and you're done.
Time to start putting Textmate's Ctrl-Shift-H shortcut to good use. Hello Markdown, goodbye HTML blogging.
Awesome, thank you -- have been wanting to set this up for some time!
Posted by: Nate Beaty | 2006.09.10 at 00:20
the most recent dev release, 1.95, works for me. no need to go to 2.0
Posted by: moshe weitzman | 2007.01.09 at 17:32
I couldn't find 2.0 either -- but was able to get this working with 1.9.5. Awesome!
Just wish it used the UI that OmniWeb has for external editors...
Posted by: Chris Messina | 2007.02.05 at 06:00
Hmm... not sure why this isn't working for me. I'm pretty sure I've done everything right.
Posted by: Josh Levy | 2007.02.05 at 21:28
Any idea of getting xul language in textmate ?
thks
Posted by: reremoon | 2007.03.05 at 11:33