First version of OpenACS syntax highlighting for TextMate

by Lars Pind on October 9, 2004

http://pinds.com/files/OpenACS.tmbundle.zip

Far from perfect, but a first step on the way, here’s syntax highlighting for OpenACS Tcl and ADP files for use with TextMate for the Mac. Let’s just say it’s GPL, so enjoy, make it better, and share back. Still no snippets, commands, or any of the other stuff you can do, but it’s a start.

Update: OpenACS for TextMate, not for OpenACS.

UPDATE2: It’s gone, lost in the server move. Sorry.

UPDATE3: Mike Naberezny tells me it can be found here.

UPDATE4: Jarkko sent it to me, so the link at the top works again now.

{ 7 comments }

Jarkko Laine October 9, 2004 at 11:49 pm

Opening adp and tcl files from within a project not working

Hi Lars,

And thanks for the bundle. I’ll try to come up with a few macros/snippets soon.

I noticed one weird behaviour, though. Notably, I can’t open an adp or a tcl file from a project (after I made an OpenACS installation to a project). Opening a file with the normal open command works fine, tho. Have you noticed anything similar? I’m using the latest beta (1.0.1b4).

Jarkko Laine October 9, 2004 at 11:49 pm

figuring out

Ok, I figured out a fix for this. I had to add the file extensions (adp, tcl and xql) to CFBundleTypeExtensions in Info.plist file inside the TextMate application package. I have a hunch, however, that this might not be the right way since I think the whole package is replaced when upgrading.

Besides, TextMate still only shows a blank file icon for these files in the project drawer.

Lars Pind October 9, 2004 at 11:49 pm

No problems here

Hi Jarkko

Works fine for me, without making changes to anything.

I did start my OpenACS project before creating this bundle, though.

/Lars

Jarkko Laine October 9, 2004 at 11:49 pm

Fixed

I reported this to Allan and he added the suffices OpenACS uses to the default TM package (since b5 or b6). Registering filetypes with a TM bundle isn’t possible yet, however, but according to Allan it’s on the todo list.

dan@chak.org October 9, 2004 at 11:49 pm

Lars, the link is broken.

Lars Pind October 9, 2004 at 11:49 pm

Sorry, it must’ve been lost in the move. I don’t have it anymore. I asked a couple likely candidates, but they don’t either.

If anyone else reading this has mine or some other OpenACS for TextMate bundle, please post a pointer here.

Otherwise, TextMate comes with excellent support for Rails built-in.

Jarkko Laine October 9, 2004 at 11:49 pm

I still have the bundle. I’ll mail it to you in a sec.

Comments on this entry are closed.

Previous post:

Next post: