Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

SciTE-ez - Programmers editor with LSL support

Ezhar Fairlight
professional slacker
Join date: 30 Jun 2003
Posts: 310
07-22-2004 11:54
Latest version: SciTE-ez 1.61-6 on 2005-04-02

I've promised this quite a while ago when I stopped updating the Editplus config files, and someone pestered me enough to finally finish it, so here it is.

Download

Readme.txt:
From: someone

SciTE-ez is a customized version of SciTE, the Scintilla Text Editor, bundled with WSciTEcm and wrapped into an easy to use installer. It's aimed at users of Second Life and contains support for the LSL API of Second Life version 1.6.0, but also serves well as all-purpose text editor.

Make sure you read the included Tutorial.lsl at least once.

The latest version should always be available at http://sl.sdfjkl.org/

Send bugreports, feature suggestions and contributions to [email]efairlight@gmail.com[/email]

Thanks go to the makers of SciTE, wscitecm, InnoSetup, ISTool, Second Life, the LSL Wiki contributors and many others.

Ezhar Fairlight <efairlight@gmail.com>

Links:
SciTE-ez: http://sl.sdfjkl.org/download/
SciTE: http://www.scintilla.org
WSciTEcm: http://www.burgaud.com/wscitecm.html
InnoSetup: http://www.jrsoftware.org/isinfo.php

ESL:
ESL scripts are basically LSL scripts that are piped through a C preprocessor (Microsoft Visual C++ Toolkit 2003 by default). This allows the use of preprocessor keywords such as #define, #include and #ifdef. SciTE-ez defines a compile (Ctrl-F7) and a go (F5) command. Compile will call the preprocessor (and a whitespace stripper) and produce a file with the .lsl suffix. Go will put the resulting LSL script into the clipboard for easy transfer into SL (it checks if a new compile is required first and does this automatically). Optionally you can also have it strip comments from the source (if you're hitting the 64kb limit of the SL editor), set NO_STRIP_COMMENT to 0 in the file lsl.properties if you wish to enable this.

History:

1.61-6: (2005-04-02)
* fixed a bunch of missing or incorrectly named LSL functions in the tooltips and highlighting (thanks Strife)

1.61-5: (2005-04-02)
* LSL support updated for Second Life 1.6.0
* Changed the F1 keyword help URL to the new address of the LSL Wiki
* Added "Sort selected lines" feature to tools menu (this uses your operating system's "sort")
* included Strife Onizuka's ESL whitespace stripper

1.61-4: (2004-08-31)
* Updated Tutorial.lsl
* LSL support updated for Second Life 1.5.0-pre2
* Minor change in calltip color
* Included an adapted version of Hugh Perkins' preprocessor hack (*.esl extension)
* Go (F5) now puts the LSL script in the clipboard for easy transfer into SL (ESL scripts are preprocessed first)
* added API hint for llParseStringKeepNulls

1.61-3: (2004-07-24)
* Added LSL Wiki online help - place your cursor on a LSL keyword an hit F1 to open the Wiki page
* Added installer choices for monospaced font and line wrapping
* Included small wrapper for software that doesn't quote long pathnames properly (i.e. Curious Labs Poser 5)
* Started this history :P

1.61-2: (2004-07-22) First public release
* Added Toolbar choice at installation
* Cleaned up global properties

1.61-1: First release (not public)


Screenshot (attached):

Enjoy!
_____________________
Hank Ramos
Lifetime Scripter
Join date: 15 Nov 2003
Posts: 2,328
07-22-2004 11:57
Excellent work Ezhar! Thank you! :D
_____________________
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
07-22-2004 12:20
OMFG EZHAR I LOVE YOU!!! :D
Pete Fats
Geek
Join date: 18 Apr 2003
Posts: 648
07-22-2004 12:27
Yes! Thank you so much for putting this together.
Dan Rhodes
hehe
Join date: 5 Jul 2003
Posts: 268
07-22-2004 12:30
Sweet! Thanks Ezhar!
Goshua Lament
Registered User
Join date: 25 Dec 2003
Posts: 703
07-22-2004 12:32
Great work!

Hint Hint: Mac Version or XWindows port
_____________________
Flickr Second Life Photo Gallery

I no longer regularly login to SecondLife, but please contact me if an issue arises that needs my attention.
Ezhar Fairlight
professional slacker
Join date: 30 Jun 2003
Posts: 310
07-22-2004 14:04
From: someone
Originally posted by Goshua Lament
Mac Version or XWindows port


SciTE can be built with GTK, so on Unix/Linux you can do that or just get the binaries for some systems. Then you can drop in my .properties and LSL api stuff, fix some Unix specicfic things and you should be set.

Apple hardware is obscenely expensive and so I don't have any, which results in me having next to no clue about Mac software - go port it yourself :)
_____________________
Reitsuki Kojima
Witchhunter
Join date: 27 Jan 2004
Posts: 5,328
07-22-2004 16:26
Nice!
Jack Digeridoo
machinimaniac
Join date: 29 Jul 2003
Posts: 1,170
07-22-2004 16:28
K&R braces!!?? TY TY TY!! This is awsome! :)


edit: oohh please give the SL client the ability to open and save w/ external editors :)
_____________________
If you'll excuse me, it's, it's time to make the world safe for democracy.
Goshua Lament
Registered User
Join date: 25 Dec 2003
Posts: 703
07-22-2004 16:30
From: someone
Originally posted by Ezhar Fairlight
SciTE can be built with GTK, so on Unix/Linux you can do that or just get the binaries for some systems. Then you can drop in my .properties and LSL api stuff, fix some Unix specicfic things and you should be set.

Apple hardware is obscenely expensive and so I don't have any, which results in me having next to no clue about Mac software - go port it yourself :)


Um, which one do I download for Apple X11 and what do I do with it. The closest thing that I have done to what you describe is using Fink Commander.
_____________________
Flickr Second Life Photo Gallery

I no longer regularly login to SecondLife, but please contact me if an issue arises that needs my attention.
Ezhar Fairlight
professional slacker
Join date: 30 Jun 2003
Posts: 310
07-22-2004 17:02
I found this on google. Seems to be a build of SciTE for MacOS/X11. I have no idea if that works or which version of SciTE it is, go try it out :)
_____________________
Goshua Lament
Registered User
Join date: 25 Dec 2003
Posts: 703
07-22-2004 17:25
From: someone
Originally posted by Ezhar Fairlight
I found this on google. Seems to be a build of SciTE for MacOS/X11. I have no idea if that works or which version of SciTE it is, go try it out :)


Installed that no problem. Which files do I have to add to it to add LSL functionallity and where do I get those?
_____________________
Flickr Second Life Photo Gallery

I no longer regularly login to SecondLife, but please contact me if an issue arises that needs my attention.
Aaron Levy
Medicated Lately?
Join date: 3 Jun 2004
Posts: 2,147
07-22-2004 18:11
Hmmm..
Rysidian Rubio
Ruby Red Head
Join date: 14 Jan 2004
Posts: 263
07-22-2004 20:13
Wonderful Ezhar!!
I can't wait to get home and try it out, but it looks amazing from the screenshot.
If only I could install it at work :(
Grim Lupis
Dark Wolf
Join date: 11 Jul 2003
Posts: 762
07-22-2004 21:19
Very nice, Ezhar. Only two niggly complaints.

Is there a version of this thing that actually saves your settings between runs? I'm getting tired of having to go into the options every time I run it. (Just annoying.)

Is there any way to set it so that LSL is the default language, and when you save a file, While you have LSL options turned on, it will actually add the .lsl extension for you?

Like I said, minor annoyances, but the thing as a whole is terrific!

Thanks
_____________________
Grim

"God only made a few perfect heads, the rest of them he put hair on." -- Unknown
Goshua Lament
Registered User
Join date: 25 Dec 2003
Posts: 703
07-22-2004 21:45
Can I have just the autocomplete file for use with my Darwin X11 version?
_____________________
Flickr Second Life Photo Gallery

I no longer regularly login to SecondLife, but please contact me if an issue arises that needs my attention.
Harry Manilow
No relation
Join date: 9 Apr 2004
Posts: 37
07-23-2004 01:53
Thank you so much for this Ezhar :cool:, it is simply astounding.

If you haven't already tried this, do so now, you won't regret it.

I doff my hat to you sir, great work!
_____________________
Reitsuki Kojima
Witchhunter
Join date: 27 Jan 2004
Posts: 5,328
07-23-2004 05:21
From: someone
Originally posted by Grim Lupis
Very nice, Ezhar. Only two niggly complaints.

Is there a version of this thing that actually saves your settings between runs? I'm getting tired of having to go into the options every time I run it. (Just annoying.)

Is there any way to set it so that LSL is the default language, and when you save a file, While you have LSL options turned on, it will actually add the .lsl extension for you?

Like I said, minor annoyances, but the thing as a whole is terrific!

Thanks


Agreed. I noticed this too.
Ezhar Fairlight
professional slacker
Join date: 30 Jun 2003
Posts: 310
07-23-2004 08:40
From: someone
Originally posted by Goshua Lament
Installed that no problem. Which files do I have to add to it to add LSL functionallity and where do I get those?


I'll add a zipfile with just the .properties/.api files to the download section this weekend.
_____________________
Ezhar Fairlight
professional slacker
Join date: 30 Jun 2003
Posts: 310
07-23-2004 08:46
From: someone
Originally posted by Grim Lupis
Is there a version of this thing that actually saves your settings between runs? I'm getting tired of having to go into the options every time I run it.


Not exactly. If you want to permanently change an option, you should set it in your SciTEUser.properties (use the menu entry: Options -> Open User Options File).

Which options would you like to change? I can add more settings to the installer if theres some options that everyone wants to change so you can just pick them when installing.

From: someone
Is there any way to set it so that LSL is the default language, and when you save a file, While you have LSL options turned on, it will actually add the .lsl extension for you?


Hmm, LSL is already the default language, so when you just create a new file it should default to LSL syntax highlighting and calltips. Does that not work for you?

I gotta look into the .lsl extension thing.
_____________________
Cubey Terra
Aircraft Builder
Join date: 6 Sep 2003
Posts: 1,725
07-23-2004 15:36
Whoah! I just tried it. This is great! I'll never go back to typing directly into that stupid script window.

Thanks, Ezhar!
_____________________
C U B E Y · T E R R A
planes · helicopters · blimps · balloons · skydiving · submarines
Available at Abbotts Aerodrome and XstreetSL.com

Grim Lupis
Dark Wolf
Join date: 11 Jul 2003
Posts: 762
07-23-2004 15:36
From: someone
Originally posted by Ezhar Fairlight
Not exactly. If you want to permanently change an option, you should set it in your SciTEUser.properties (use the menu entry: Options -> Open User Options File).

Which options would you like to change? I can add more settings to the installer if theres some options that everyone wants to change so you can just pick them when installing.


Well, like I said, it's niggly and minor. So far the one that really annoys me is that it won't stay set on monospaced font. I'll have a look at the user options file.

From: someone
Originally posted by Ezhar Fairlight
Hmm, LSL is already the default language, so when you just create a new file it should default to LSL syntax highlighting and calltips. Does that not work for you?


That works. It's just not intuitively obvious (until you start working on a new script and can observe the highlighting, that is.)

From: someone
Originally posted by Ezhar Fairlight
I gotta look into the .lsl extension thing.


Thanks!

Like I said, minor little things. But on the whole, it's a fantastic improvement over notepad!
_____________________
Grim

"God only made a few perfect heads, the rest of them he put hair on." -- Unknown
Grim Lupis
Dark Wolf
Join date: 11 Jul 2003
Posts: 762
07-23-2004 17:24
OK, I've gone digging into the global settings file, and have turned on monospacing, which seems to be working.

I also noticed this:

"default.file.ext=.lsl"

Which apparently does nothing at all. :-/
_____________________
Grim

"God only made a few perfect heads, the rest of them he put hair on." -- Unknown
Ezhar Fairlight
professional slacker
Join date: 30 Jun 2003
Posts: 310
07-23-2004 19:20
That line ensures that SciTE uses LSL as the default mode, but despite the name it has nothing to do with file extensions :)

Also, I added a zipfile to the download page with only the properties/api/abbrev files for SciTE. That should help the Mac people and anyone else who is already using SciTE. Don't forget to add "import lsl" to your global properties if you're not using mine.
_____________________
Larry Manilow
|\|00b33
Join date: 1 Jul 2004
Posts: 15
Yowza
07-23-2004 19:34
Damn, that thing is sweet. Good work and many thanks.
_____________________
-lm
1 2 3