
It's free and availble for the rest of my Mac-using Lifers. It's also current as of SL 1.6.0.
http://mohland.com/lsl.html
Enjoy!
-CaptainBarmy
These forums are CLOSED. Please visit the new forums HERE
LSL Module for BBEdit/TextWrangler |
|
|
Captain Barmy
Pirateocrat
Join date: 18 Mar 2005
Posts: 187
|
04-04-2005 20:50
I do most of my coding in BBEdit, and I noticed that the old LSL module was broken in the newer versions of BBEdit & TextWrangler. So I wrote my own
![]() It's free and availble for the rest of my Mac-using Lifers. It's also current as of SL 1.6.0. http://mohland.com/lsl.html Enjoy! -CaptainBarmy |
|
Olmy Seraph
Valued Member
Join date: 1 Nov 2004
Posts: 502
|
04-04-2005 21:10
Oh thankyouthankyou! I would have done this myself if I could have found the docs on how to do it. I looked on the BB website but couldn't find them.
I noticed lines 409, 411 and 413 all define the string TRUEFALSE. Is that a bug/type, or something about how the CLMs work? _____________________
Some people are like Slinkies... not really good for anything, but they sure bring a smile to your face when you push them down the stairs.
|
|
Captain Barmy
Pirateocrat
Join date: 18 Mar 2005
Posts: 187
|
04-04-2005 21:19
Olmy,
Nice catch, thanks. I had a bunch of repeating constants in there. Made them all unique, and updated the file on the server. --Captain Barmy |
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
04-06-2005 03:21
This is great thank you!
I have a question to which I suspect the answer is no but is it possible to hack the colours so that they appear in the LSL colours (red, blue, green) rather than all blue and pink text? I've got so used to reading them that way it took me a moment to work out what was going on. I'm sure I'll adjust though. |
|
Captain Barmy
Pirateocrat
Join date: 18 Mar 2005
Posts: 187
|
04-06-2005 11:14
I have a question to which I suspect the answer is no but is it possible to hack the colours so that they appear in the LSL colours (red, blue, green) rather than all blue and pink text? I had that same thought when writing the module. I don't know of a way to add more colouring like the built-in editor, although it would be nice. ![]() BBEdit's syntax colouring has three basic elements: strings, keywords, and comments. In the LSL module, strings are encapsulated in quotes, comments prefixed by //, and keywords are lsl-defined (functions, constants, etc...). |
|
jester Knox
Sculpter of Water
Join date: 22 Apr 2004
Posts: 204
|
04-06-2005 12:06
thank you thank you thank you
jester . _____________________
people tell me my fountains are cool, come check them out at JesAma Fountains, Alviso (190,45) or if you arent in SL try Gigas (secondserver.net) or SLBoutique to shop for my products.
|
|
Captain Barmy
Pirateocrat
Join date: 18 Mar 2005
Posts: 187
|
Missing functions
04-06-2005 13:36
Hmm...
While scripting last night, I used a function that wasn't documented in the scripting guide (llOwnerSay). If you come across any that don't automatically colour, IM me in game and I'll update them in the module. So far I've found: llBase64ToInteger llGetSimulatorHostname llIntegerToBase64 llOwnerSay llSetSoundRadius llGodLikeRezObject [Edit]: Updated & available at the site. Cheers, --Captain Barmy |
|
Adam Marker
new scripter
Join date: 2 Jan 2004
Posts: 104
|
unicode, colors, etc...
04-09-2005 12:05
As Captain mentioned, the "codeless" language module only supports three colors; you can change them in Preferences/Text Colors/Source Code.
I am the author of the language module for BBEdit 6 and 7. The module that doesn't know how to do Unicode .... so it does not work in BBEdit 8 (and TextWrangler 2). If anyone is interested in the source code, you're welcome to it. I tried to follow the instructions for supporting Unicode, but my C programming skills are lacking. I just barely got the module working based on examples from other languages. I used MPW (free download) for building, since all the examples I found used it. The new Codeless Language Modules are TONS easier to write than the C modules, but do not yet support all the capabilities of C modules. For instance, the C module populates the Function Popup with state and routine names, but the CLM appears unable to discern the routine names. Although I only used the 3 standard colors, a C module can also highlight using the 6 other colors in Preferences/Text Colors/HTML tags. |
|
Captain Barmy
Pirateocrat
Join date: 18 Mar 2005
Posts: 187
|
04-09-2005 12:48
Hey Adam,
It's been around 6 years since I've done any serious work in C, but I could try my hand at adding unicode support. The ease of the CLM resulted in it taking under an hour to write ![]() The features available in compiled language modules do sound interesting. I'll IM you in-game about this. |
|
Chalky White
Second Life Resident
Join date: 1 Nov 2004
Posts: 140
|
04-10-2005 04:47
Thankyou CB - I've been hoping someone would do this for a while.
At first my comments had no coloration, but when I look in preferences, all three colors can be changed. Rather bizarre, but the default for comments seemed to be very dark grey. Change the colors - all is fine. Great job. |