DOMAssistant bundle for TextMate

Like many other Mac users I do most of my coding in TextMate. It has tons of really nice features, one of which is its extensibility – if you need support for a coding language that isn’t included with TextMate, you can add it yourself.

Well, I’ve been using Robert Nyman’s DOMAssistant JavaScript library quite a bit lately, and TextMate doesn’t support DOMAssistant’s methods and syntax. I was getting a bit annoyed at knowing that I was doing a lot of unnecessary typing because of this, so I decided to create a TextMate bundle for DOMAssistant.

Armed with my copy of TextMate, James Edward Gray II’s excellent TextMate: Power Editing for the Mac, and the DOMAssistant documentation, I started hacking away. This was the first time I took a closer look at adding support for a language in TextMate, but it turned out that it really isn’t that difficult.

After a few hours of work, the result is a DOMAssistant TextMate bundle with tab triggered snippets for all methods, a code completion dictionary, and documentation links for all DOMAssistant keywords.

If you use TextMate and DOMAssistant I think this will save you a few keystrokes :-).

Suggestions for improvement are welcome. Remember that this is my first TextMate bundle, so please be gentle.

Posted on March 10, 2008 in Coding, JavaScript, Mac, Productivity

Comments

  1. This bundle will save time when you are coding with TextMate and DOMAssistant.

  2. Hey, thanks for that. I was just looking for something alike… got to try it now.

  3. If we are talking about improving our coding, there are some alternatives for using TextMate. Not everyone has access to MacOS and its applications. On Windows we could use Notepad++, which is free and extensible. QuickText Plugin offers snippets and auto completion. On Linux we have simple gedit with the same or even better functionality. After all, the text editors overview could be a good topic for an article.

  4. Łukasz,

    Bundles for TextMate also work in the E-TextEditor for Windows, so there’s an alternative there.

    With that said, an article about editors would be a very interesting read. :-)

  5. Re: E-TextEditor for Windows. It’s a pile of pain, if you allow the mixed metaphor. It’s not up to production standards, according to a day-to-day “E-using” workmate, who frequently swears loudly about its inability to open the right files, its weak search facility, and generally unpolished UI. A TextMate for Win32 it ain’t.

    Oh, sorry to mini-review right here, but E makes for some trouble.

  6. Anyone know anything good that’s similar to this for linux? i just started running ubuntu and have used bluefish, which seems good… anything out there thats better?

  7. I don’t know that bluefish has some configurable plugins, like snippets or auto completion. I use gedit (standard text editor on Linux), which have snippets and many others plugins. I have use this for coding XHTML, CSS, PHP, and even JavaScript. But for someone it could be not enough.

Comments are disabled for this post (read why), but if you have spotted an error or have additional info that you think should be in this post, feel free to contact me.