Page 1 of 1

BBedit run bindings on OSX Lion

Posted: Fri Nov 11, 2011 11:52 pm
by untangle
I love both newLISP and BBedit.

But, while I have newLISP working flawlessly with TextMate, I can't get BBedit to run a script from the #! menu. Rather, BBedit complains "File appears to lack proper shebang line."

(I have installed the BBedit plist file, which appears to be working.)

I'm on fully-patched OSX 10.7.2.

Any ideas?

Thanks,

Bob

Re: BBedit run bindings on OSX Lion

Posted: Sat Nov 12, 2011 8:35 am
by cormullion
The first line of every script should be

#!/usr/bin/env newlisp

or

#!/usr/bin/newlisp

What is the first line of your script?

Re: BBedit run bindings on OSX Lion

Posted: Mon Nov 14, 2011 5:56 pm
by untangle
cormullion wrote: #!/usr/bin/newlisp

What is the first line of your script?
This worked. I had a space after the "!". Duh.

Thanks much.

Bob

Re: BBedit run bindings on OSX Lion

Posted: Sat Mar 10, 2012 1:23 am
by kanen
What code less module are you using in BBEdit for syntax highlighting?

I've tried to move to BBEdit for newLisp and I keep going back to TextMate for various reasons, not the least of which is auto-paren matching.

Re: BBedit run bindings on OSX Lion

Posted: Sat Mar 10, 2012 8:23 am
by cormullion
I'm using something based on this:

http://www.truerwords.net/articles/bbed ... odule.html

but it does tend to grind to halt on bigger files.

You could check out Sublime Text too - there's more than a hint of Textmate to it.

Re: BBedit run bindings on OSX Lion

Posted: Tue May 01, 2012 2:39 am
by kanen
Care to share?

Mine is old and crappy and doesn't support any of the new keywords or proper variable highlighting as part of its syntax. I've been sticking with TextMate because the newLisp language Bundle just works (and I can add words and fix it when it doesn't, without having to figure out Ph.D. level code writing).
cormullion wrote:I'm using something based on this:

http://www.truerwords.net/articles/bbed ... odule.html

but it does tend to grind to halt on bigger files.

You could check out Sublime Text too - there's more than a hint of Textmate to it.

Re: BBedit run bindings on OSX Lion

Posted: Tue May 01, 2012 12:36 pm
by cormullion
My version has nothing much except the new keywords, but still struggles to format longer files - the regex approach isn't very quick, I suppose. You can find it on github.

SublimeText accepts TextMate language bundles, by the way - if you understand the latter, you'll be able to customize the former.

By the way - notice the syntax highlighting for newLISP files on Github? Took ages for that to happen! And it still breaks on regex... :)