So I’ve been spending a lot of time poring over .idl files in BBEdit lately while I work on building reference documentation for Firefox 3. I finally got tired of not having syntax coloring and the like, so I created a codeless BBEdit language module for them. It’s nothing fancy but it’s a start. You get syntax coloring on comments, strings, the names of keywords, and so forth, and the function popup is presently populated with the names of all the interfaces defined in the file.
Doing more than that will require a full-fledged language module, which I’m looking at doing because I’d like to have the function popup populated with both the interface names and the names of all the attributes and methods defined therein.
If you’d find the current module handy, you can download it. Just unzip it, drop it in the ~/Library/Application Support/BBEdit/Language Modules folder (create that folder if it’s not there already) , and restart BBEdit.
You may need to go into the preferences, choose the Languages panel, and create an association between the “.idl” extension and the Mozilla IDL language. In theory this should happen automagically but I didn’t try it.
Oh, and this should work in the free TextWrangler as well.