Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

New SciTE files for lsl.

LordJason Kiesler
imperfection inventor.
Join date: 30 May 2004
Posts: 215
09-08-2007 05:44
Please scroll down to, and read the post "SciTE Modified".



OLD post.......
First of all, thanks to Ezhar Fairlight for these files in the first place, Adam Marker for shill, and keeping them up to date, and W-Hat for lslint.
I like using SciTE for lsl, and SciTE works natively on Linux (if you didn't know).
So for a long time, I have been using my own personal modified version of Ezhar Fairlight's original files, and I decided that I may as well share even if they aren't perfect.

Using the “if PLAT_” statements I believe I have kept these files compatible with the windows version of scite.
You will need:
SciTE
cpp
lslint
astyle
xclip --optional, for copying the file to clipboard. see comments in lsl.properties
I know this trend seems all to common on the interwebs, but sigh..., Ubuntu is what I use.
From: someone
sudo apt-get install scite cpp astyle xclip

And you can get lslint from http://w-hat.com/lslint/
Get lslint and put the binary in /usr/bin/ and make sure to chmod +x
From: someone
wget http://w-hat.com/lslint/release/linux/lslint.bz2
bunzip2 ./lslint.bz2
sudo mv lslint /usr/bin/lslint
sudo chmod +x /usr/bin/lslint

Now just download this file, extract it, take abbrev.properties, lsl.api, lsl.properties, and .SciTEUser.properties and put all 4 of them directly into your home folder.

If you wish to use things like #define FOO #include "foo" etc. name your file using the extension 'esl' instead of 'lsl'. When you chose the go command from the menu or hit F5, here is what happens.
Steps 1 and 2 only apply if it ends in 'esl', otherwise skip to 3.
1 Your file is sent to cpp for preprocessing, it outputs the result to a new file using the lsl extension.
2 then astyle cleans up the lsl file, using the options --style=kr -n -E -p -O -D -U -V -w -a

3 Lastly, lslint is called and it checks your lsl file, and the output of that is shown in scite.

Some nice features.
You can put the cursor over something in your code and press F1 to go to the lsl wiki page for that word.
Folding
Auto complete. Type 'listen' then hit ctrl+b it will fill in the standard (integer channel, bla bla....


Anyway, these are just plain copies of my files. They could probably be quite a bit cleaner looking, but my main concern was making them work exactly the same way cross platform.

You can still get these files from http://adammarker.org/shill
_____________________
"no, my alt is clean on crashing any sims"
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
09-10-2007 21:15
Rah! You just made my day. I've been looking all over for this very thing. =^.^=
Heuvadoches Naumova
Equus Exoticus
Join date: 6 Oct 2005
Posts: 174
09-18-2007 09:27
Can you post the files required in a windows format? Some of us geeks haven't graduated to a real operating system.
_____________________
Respectfully yours,
Heuvadoches
[I try to be in character as much as possible.]


[left]Obligitory Advertisement: Pixel Crack Productions - Rainbow Tiger Island Mall
[/left]
LordJason Kiesler
imperfection inventor.
Join date: 30 May 2004
Posts: 215
09-19-2007 16:52
From: Heuvadoches Naumova
Can you post the files required in a windows format? Some of us geeks haven't graduated to a real operating system.


The same files should work on windows as well. I have not tested it. Let me know what happens please.
Just put the files into your scite install folder.
If you you were referring to the tar format, here is a zip.
http://dimension128.homelinux.net/scite_lsl.zip
_____________________
"no, my alt is clean on crashing any sims"
Ralph Doctorow
Registered User
Join date: 16 Oct 2005
Posts: 560
09-19-2007 17:14
Is that url correct?

http://dimension128.homelinux.net/scite_lsl.zip

It seems unavailable.
LordJason Kiesler
imperfection inventor.
Join date: 30 May 2004
Posts: 215
09-19-2007 18:03
From: Ralph Doctorow
Is that url correct?

http://dimension128.homelinux.net/scite_lsl.zip

It seems unavailable.


Yes. My ip changed apparently, and the dyndns didn't keep up.
Try again.
Please host the files elsewhere, I can just about promise that I wont be running this server forever.
_____________________
"no, my alt is clean on crashing any sims"
Ralph Doctorow
Registered User
Join date: 16 Oct 2005
Posts: 560
09-20-2007 14:32
Still not there.

How about putting it into the Script library - it's not that huge is it?

http://wiki.secondlife.com/wiki/Category:LSL_Library
Gorgious Matfield
Registered User
Join date: 15 Sep 2007
Posts: 1
11-02-2007 05:00
I uploaded the scite_lsl.tar.gz from http://adammarker.org/shill/ (Hopefully I was allowed to) here:

http://x3cion.net/upload/sl/scite_lsl.tar.gz

Give me the .zip and I upload it there, too.
LordJason Kiesler
imperfection inventor.
Join date: 30 May 2004
Posts: 215
SciTE Modified
12-27-2007 20:12
http://dimension128.110mb.com
Ok so I thought I would do something good, and share the hackish .properties files I made for scite. But I still felt a little dirty after doing so. I knew they sucked, and ultimately wanted to just dump them on the community and have someone else take over.

Fast forward somewhat....
Now I have moved away from the orig, Ezhar Fairlight design (mostly). I think there are only like 2 or 3 lines in the .properties file that are still the same.
I still would like to give credit to Ezhar for that however.

What I am doing now.
I kept running into a wall with everything I wanted to do. This wall can be defined as "using a lexer for another language".
I wanted to highlight the different keywords, Constants, etc. each with their own color. But the Cpp lexer just wouldn't allow that. I wanted SciTE to handle the errors from lslint.

So I dove in to the source and just did it.
The result? SciTE now handles lsl properly, no more highlighting single quoted strings, no more sharing colors with keywords that should be colored differently, etc. And it will parse the output from lslint (with a sed hack at the moment).

I went ahead and got a free hosting service for this, so hopefully it will stick around for a long time :-). http://dimension128.110mb.com
If anyone can do a better job, please do. email dimension128 at gmail dot com .

Adam, I download your shill system and figured out how to make a template for this. I will email it to you as soon as I think the .properties file wont be changing anymore.

Also, I am in the middle of moving right now. So things will be slooooow. I am sorry for this.
_____________________
"no, my alt is clean on crashing any sims"
ArrayTo String
Registered User
Join date: 24 Jun 2008
Posts: 1
06-24-2008 09:19
hello
thank you for the files
the coloration is working, but my problem is that the spacebar is not working for lsl files.
im using :
linux ubuntu 8.04
scite v 1.75