Folding Lingo on OSX

September 11th, 2006

I’ve been using BBEdit for a dozen years or so and make extensive use of the program for many daily tasks (grep stuff, misc. html editing, etc.). A rather powerful tool for specific needs.

For BBEdit/Lingo coding there has been a way to colorize your scripts using a Language plug-in written by Avacast. I’ve never used external scripts when working with Director, but I occasionally copy and paste a script in to an external editor, make my changes, and then copy/paste it back in to Director. The colorized text in BBEdit has always been nice.

BareBones released BBEdit v8.5 last week and one of the new features is code folding. That feature would be pretty nice for dealing with long lingo scripts! It was mentioned on a mailing list that Lingo didn’t seem to be folding so I decided to take a look. It definitely didn’t seem to fold. It seems as if the language plug-in will need to be updated, and the new plug-in SDK hasn’t yet been released.

Since that one isn’t quite ready yet I decided to take a look at TextMate which I’d seen mentioned in a MacDevCenter post.

I played with TextMate for a few minutes. The program supports a large number of programming languages and has a wealth of features associated with each language. The program is extremely flexible for editing language syntax and extension of features! On their site I noticed that Lingo had been requested, but no one had taken time to create a Lingo “Bundle.”

One thing about Lingo is that the structure is a bit like AppleScript, so rather than spending time working on creating a Lingo bundle I just chose AppleScript as the syntax and started typing.

lingo script in textmate

The script took on some color, and is being automatically indented. For some things autocompletion kicks in. Of course my entire reason for looking at the program was for code folding, and as you can see, it does a rather good job with lingo code.

lingo script in textmate

I’m really impressed with TextMate and may end up getting a copy just to have around when editing a few scripts. Maybe the next version of Director will have a much better script editor 😉

Entry Filed under: Daily thoughts,External goodies

2 Comments Add your own

  • 1. alex da Franca  |  October 1st, 2006 at 8:32 am

    I made a lingo CLM for bbedit 8.5.
    Unfortunately CLMs only support folding of functions.
    To be able to fold functions AND other structures as for example if..else..end if or repeat..end repeat and so on, a compiled language module would be necessary. Once I have enough sparetime I’ll try to get my head into compiled language modules…

    meanwhile you can give the CLM a whirl, if you like bbedit. Can be found here:
    Farbflash

  • 2. Director @ Night » &hellip  |  October 2nd, 2006 at 8:50 pm

    […] In the short post the other day I’d glanced at the new folding feature in BBEdit. For those that didn’t catch the comment by Alex da Franca, he has put together a CLM for BBEdit so you can ‘fold’ the code while editing a lingo script. […]

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Director Sites

Calendar

September 2006
M T W T F S S
« Aug   Oct »
 123
45678910
11121314151617
18192021222324
252627282930  

Archives

Recent Posts

Recent Comments