Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

LSL Module for BBEdit 8

Max Case
Registered User
Join date: 23 Dec 2004
Posts: 353
01-17-2005 11:46
Hello,

I am wondering if anyone has had success installing the LSL Lang Module for BBEdit 8. I put it in the Application Support> BBEdit > Language Modules But when I start BBEdit, it doesn't show up in my languages list.

Has anyone had success with BB8 + LSL Lang Module? Am I wasting my time? (is the module made for an earlier version of LSL?)

Thanks,
Max.
Kurt Zidane
Just Human
Join date: 1 Apr 2004
Posts: 636
01-17-2005 16:46
I haven't tried, but I would imagtion you have to chose it as the launge you want to use.
Max Case
Registered User
Join date: 23 Dec 2004
Posts: 353
Yes, I know that
01-18-2005 07:07
Yes, I know that. It doesn't show up as a choice.

Max.
Chalky White
Second Life Resident
Join date: 1 Nov 2004
Posts: 140
01-18-2005 19:46
Max, I tried hard with this a few weeks ago. Like you, I couldnt get it recognised.
I emailed BBEdit support for advice. Here is the replu I got:

From: (me)

I am trying demo with a view to purchase. I wish to code in Linden
scripting language LSL. I found a language module here :
http://constella.org/lsl.html My installation had no "Language
Modules" folder so I created one and put this module in. Does not
work. Is not recognised. Any advice?

Hi John;

Thanks for writing in. If you watch the Console while BBEdit launches it will provide diagnostic information for third party modules as it tries to load them.

In this case, this module does not support Unicode, and so can not be used with BBEdit 8.0.2. Please remove the language module from the 8.0.2 Language Modules folder, and contact its developer for assistance or an BBEdit 8.0 compatible update, if one is available.

I hope this helps, but as always please do not hesitate to write if you have any other questions.

Regards,

Ciaran.
--
Bare Bones Software, Inc. <http://www.barebones.com>
P.O. Box 1048, Bedford, MA 01730-1048 <support@barebones.com>
Pol Tabla
synthpop saint
Join date: 18 Dec 2003
Posts: 1,041
03-14-2005 01:05
I don't understand LSL very well. I'm an ActionScript/JavaScript guy in RL, so in an effort to understand a little better how LSL is built I've begun writing an LSL language module for BBEdit 8. This is a codeless language module as described on page 319 of the BBEdit 8 manual. Basically it is an XML format preferences file (.plist), and should be installed here:

~/Library/Application Support/BBEdit/Language Modules

(If there is no Language Modules folder in that location you can create one.)

The nice thing about this XML file is that it is easily editable, so anyone can add to it or fix errors. I have specified in the module that files ending in the suffix .lsl are Linden Scripting Language files, so if you open (or save) a file with an .lsl suffix, it will use syntax coloring according to the rules of the module.

At this point what I've done is specify delimiters and added keywords from the LSL Guide included with the 1.6 preview. The keyword list includes all of the Functions (section A), Events (section B), and Constants (section C). Plus I added "default" because it was in the script I was testing this on. There's a few things missing, but this is decent start. Feel free to add or make corrections, I just ask that you share with the forums if you make improvements.

The language module seems to have some quirks. Keywords are not colored if there is a space before them:
CODE
= llGetInventoryNumber
will not be colored, but
CODE
=llGetInventoryNumber
will be.

And though I've specified statement block and parameter list delimiters, it doesn't seem to understand the syntax of LSL. This could be my error, as I've never made a languge module for BBEdit before.

Anyway, here 'tis:
_____________________