Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

SciTE-ez - Programmers editor with LSL support

Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
07-23-2004 19:38
This looks like a great editor!

Azelda
Goshua Lament
Registered User
Join date: 25 Dec 2003
Posts: 703
07-23-2004 19:43
From: someone
Originally posted by Ezhar Fairlight
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.


Where do I put those files?
_____________________
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-24-2004 06:20
Usually in whichever directory your SciTE executable is in - there should already be a bunch of *.properties files there.
_____________________
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
07-24-2004 15:02
Yeah, the one thing that I noticed was that if you don't SAVE your file as .lsl, it won't use the LSL syntax highlighting. THAT could be improved.
_____________________
Need scripting help? Visit the LSL Wiki!
Omega Point - Catherine Omega's Blog
Alondria LeFay
Registered User
Join date: 2 May 2003
Posts: 725
07-25-2004 08:37
I'll have to give this a shot - currently using ultraedit bit this looks like it has popups for function syntax which would save me from having the help files open non-stop (I program in too many languages to remember what is what... There is nothing like sitting down, programming, and realize half way through what your doing you started coding in Perl instead of LSL...;)

/edit: Okay, from first look, that thing rocks! Will have to try it out a bit to see if it will be a replacement, but from first glance, very nice! Can you remap the keystrokes in the preferences? (Or I guess I'll just not be lazy and look myself...)
Ezhar Fairlight
professional slacker
Join date: 30 Jun 2003
Posts: 310
07-25-2004 09:23
Slightly updated version available now, most noticeable it now features direct help for LSL calls via the wiki. See the history in the top posting for more details.

Alondria, SciTE is very customizable if you're not afraid of editing config files. Additionally it's scriptable in LUA.
_____________________
Ezhar Fairlight
professional slacker
Join date: 30 Jun 2003
Posts: 310
08-31-2004 09:31
Updated for SL 1.5. See the history in the topmost posting on this thread for other changes.

Download
_____________________
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
08-31-2004 18:27
here's a little change so you can use Ezhar's new version with the my semi-smart vertical white space stripper.

in lsl.properties
replace
CODE

if NO_STRIP_COMMENT
esl.strip.comment=/C
#command.compile.*.esl=cmd /c cl /nologo /X /u $(esl.strip.comment) /Tc"$(FileNameExt)" /EP >"$(FileNameExt).tmp" && "$(SciteDefaultHome)\SciTE.exe" "-open:$(FileNameExt).tmp"
command.compile.*.esl=cmd /c cl /nologo /X /u $(esl.strip.comment) /Tc"$(FileNameExt)" /EP >"$(FileName).lsl"

# put lsl script into clipboard
command.go.$(file.patterns.lsl)="$(SciteDefaultHome)\clipboard.exe" "$(FileName).lsl"
command.go.needs.*.esl=cmd /c cl /nologo /X /u $(esl.strip.comment) /Tc"$(FileNameExt)" /EP >"$(FileName).lsl"


with
CODE

if NO_STRIP_COMMENT
esl.strip.comment=/C
#command.compile.*.esl=cmd /c cl /nologo /X /u $(esl.strip.comment) /Tc"$(FileNameExt)" /EP >"$(FileNameExt).tmp" && "$(SciteDefaultHome)\SciTE.exe" "-open:$(FileNameExt).tmp"
#command.compile.*.esl=cmd /c cl /nologo /X /u $(esl.strip.comment) /Tc"$(FileNameExt)" /EP >"$(FileName).lsl"
command.compile.*.esl=cmd /c cl /nologo /X /u $(esl.strip.comment) /Tc"$(FileNameExt)" /EP >"$(FileName).wsl" && "$(SciteDefaultHome)\stripper.exe" "$(FileName).wsl" "$(FileName).lsl" && del "$(FileName).wsl"

# put lsl script into clipboard
command.go.$(file.patterns.lsl)="$(SciteDefaultHome)\clipboard.exe" "$(FileName).lsl"
#command.go.needs.*.esl=cmd /c cl /nologo /X /u $(esl.strip.comment) /Tc"$(FileNameExt)" /EP >"$(FileName).lsl"
command.go.needs.*.esl=cmd /c cl /nologo /X /u $(esl.strip.comment) /Tc"$(FileNameExt)" /EP >"$(FileName).wsl" && "$(SciteDefaultHome)\stripper.exe" "$(FileName).wsl" "$(FileName).lsl" && del "$(FileName).wsl"


course you will need a copy of the text stripper. found here
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
blaze Spinnaker
1/2 Serious
Join date: 12 Aug 2004
Posts: 5,898
08-31-2004 19:02
Nice. Let's petition SL to let us upload scripts via RPC..

A published BNF would be nice as well.
Ezhar Fairlight
professional slacker
Join date: 30 Jun 2003
Posts: 310
09-01-2004 04:06
Strife, would you mind if I included your stripper in the next release?
_____________________
Grim Lupis
Dark Wolf
Join date: 11 Jul 2003
Posts: 762
09-01-2004 11:09
From: someone
Originally posted by blaze Spinnaker
Nice. Let's petition SL to let us upload scripts via RPC..


/13/1e/19667/1.html
_____________________
Grim

"God only made a few perfect heads, the rest of them he put hair on." -- Unknown
Freqout Manray
Junior Member
Join date: 12 Jul 2004
Posts: 1
09-01-2004 15:41
The LSLWiki StyleGuide suggests doing

CODE

default
{
state_entry()
{
if (x == 1)
{
llSay(0, "X is:" + (string) 1);
}
}
}

rather than
CODE

default {
state_entry() {
if (x == 1) {
llSay(0, "X is:" + (string) 1);
}
}
}

You can modify your abbrev.properties file and add a \n in front of the abbreviations so that you have

# LSL states
default=default\n{\n\t|\n}
state=state |\n{\n\t\n}

rather than

# LSL states
default=default {\n\t|\n}
state=state | {\n\t\n}
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
09-01-2004 20:28
From: someone
Originally posted by Ezhar Fairlight
Strife, would you mind if I included your stripper in the next release?


sure. Makes my life easier; don't have to add hack after each update...

Also if you want to change it go right ahead, it's easy to compile as you have the MSVC compiler already. It reads up to 2k at a time. It will have problems if a line is longer then that....
More interestingly it supports undocumented LSL whitespace characters. They are useful if you want to make a script obfuscated.:D

(waits around for another obfuscated coding contest)

revisions

Thx for dreaming this up. Big multi script projects are now managable. All we need now is a syntax checker. I think a hacked c compiler would do the job.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Maximus Zander
Registered User
Join date: 30 Apr 2004
Posts: 55
09-02-2004 07:18
//I always do:

------Edited Out-------

// Cant do spaces in this forum, so ill stop with posting script lol
Ezhar Fairlight
professional slacker
Join date: 30 Jun 2003
Posts: 310
09-02-2004 13:21
Freqout, actually I made abbrev files for both brace styles. It lets you choose which one to use when installing.

Strife, cool, it'll be in the next release.
_____________________
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
10-03-2004 20:07
*yawn*

pump
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
11-29-2004 19:56
you can download XyCalc ported to ESL
http://home.comcast.net/~mailerdaemon/
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
01-17-2005 07:04
would be nice if someone would update the definitions...

oh and bump
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
01-17-2005 23:57
Bahhh i've done the update my self. I also fixed some typo's.

Unzip the attachment to your scite-ez folder overwriting the old versions.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Ezhar Fairlight
professional slacker
Join date: 30 Jun 2003
Posts: 310
Latest version: SciTE-ez 1.61-6 on 2005-04-02
04-02-2005 07:19
Updated for SL 1.6 - see the first posting in this thread for details.
_____________________
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
08-16-2005 14:15
*bump*
:D
For large project using an outside editor is a must
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
08-18-2005 00:13
I'm in love. No, really...I'm in love. Thank you for the awesome resource!
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
12-17-2005 03:40
Here are updated files for your Scite-ez.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Tip Baker
Registered User
Join date: 12 Nov 2005
Posts: 100
12-17-2005 04:28
Many thanks Strife,
Ghordon Farina
Script Poet
Join date: 1 Nov 2005
Posts: 126
12-17-2005 12:43
Awesome.

Thanks a billion!
1 2 3