Difference between revisions of "User:Jesse Barnett/Scite"

From Second Life Wiki
Jump to navigation Jump to search
m (Minor cleaning up chores)
 
(10 intermediate revisions by 2 users not shown)
Line 2: Line 2:


==SciTE==
==SciTE==
(Page is under construction)
Actively updating SciTE pages 8/07/09
(Not too terribly happy with the layout right now. Going to redo it to bring all of the intro, including pic, up top. Then transition over to a step by step, download this, this, this, this, that and put this here and that there etc.)
(Actually since I started this web page it got me interested in some of the newer posibilities of SciTE. It has changed a great deal since Ezhar brought us SciTE-EZ. ALL of this information here is going to change dramtically in the next couple of weeks)
 
Stay Tuned!!!!!


Professional duty scripting workhorse. Script in multiple languages, compiles through Visual Studio C++ allowing you to use includes, define your own global variables, customise auto-indent, syntax check with lslint, customise wiki help, customise shortcuts, tabbed files, add bookmarks, opens files in LSLEditor for testing.
Professional duty scripting workhorse. Script in multiple languages, compiles through Visual Studio C++ allowing you to use includes, define your own global variables, customise auto-indent, syntax check with lslint, customise wiki help, customise shortcuts, tabbed files, add bookmarks, opens files in LSLEditor for testing.
Line 12: Line 8:
Many parts of this page will sound like an advertisement. SciTE is free, so no, I am not making any money off of this. It is just that SciTE has been sorely neglected for more then a year now. Ezhar Fairlight(Bless Him!!) brought us the original SciTE package for LSL, still functional but no longer maintained. Hopefully now others will start to play around with it.
Many parts of this page will sound like an advertisement. SciTE is free, so no, I am not making any money off of this. It is just that SciTE has been sorely neglected for more then a year now. Ezhar Fairlight(Bless Him!!) brought us the original SciTE package for LSL, still functional but no longer maintained. Hopefully now others will start to play around with it.


You can get SciTE version 1.79 here: [[http://www.scintilla.org/SciTE.html]]
You can get [http://www.scintilla.org/SciTE.html SciTE] version <del>1.79</del><ins></ins> here.
 
Once you have SciTE installed then you need to download and replace the following pages:
But once you have SciTE, you still have some work to do to get it to do some of the many tricks it can do. A good place to start would be the files listed below:


*[[User:Jesse_Barnett/lsl.api|lsl.api]]
*[https://docs.google.com/Doc?docid=0Ador6etp-D8VZGN6ZmJtenpfMjBzNHFmejdocQ&hl=en lsl.api]updated 8/07/09


*[[User:Jesse_Barnett/lsl.properties|lsl.properties]]
*[https://docs.google.com/Doc?docid=0Ador6etp-D8VZGN6ZmJtenpfMjFkZmM4NGdoYw&hl=en lsl.properties]dir: C:\Program Files\Scite\        updated 8/07/09


*[[User:Jesse_Barnett/lsl_abbrev.properties|lsl_abbrev.properties]]
*[https://docs.google.com/Doc?docid=0Ador6etp-D8VZGN6ZmJtenpfMjJmcmc2Y21ocQ&hl=en lsl_abbrev.properties]C:\Program Files\Scite\abbrev\        updated 8/07/09


*[[User:Jesse_Barnett/SciTEGlobal.properties|SciTEGlobal.properties]]
*[https://docs.google.com/Doc?docid=0Ador6etp-D8VZGN6ZmJtenpfMjJmcmc2Y21ocQ&hl=en SciTEGlobal.properties]C:\Program Files\Scite\        updated 8/07/09


*[[User:Jesse_Barnett/SciTEUser.properties|SciTEUser.properties]]
*[https://docs.google.com/Doc?docid=0Ador6etp-D8VZGN6ZmJtenpfMjRocXo2aHFxZg&hl=en SciTEUser.properties]C:\Documents and Settings\Owner          updated 8/07/09


You could take a look over at Strife's page with his SciTE links also. You can pickup stripper, indent, clipboard and lslint there and MSVC Express. [[https://wiki.secondlife.com/wiki/User:Strife_Onizuka]]
The rest of the functions that I have linked into my build are elsewhere. Strife was hosting those files and links but the stripper.exe and clipboard are no longer available there. I will update the links here for the published files and figure out a way to host his files with his permission if he is unable to. Until that time, I will make a zip file with the plugins and would be glad to email them to who needs them.         updated 8/07/09


I have mine linked to LSLEditor. See the note in my lsl.properties file for placing it(The C compiler does not like a path with spaces in it, as in C:\Program Files\LSLEditor)
I have mine linked to [http://www.lsleditor.org/Download.aspx LSLEditor]. Download and extract to your root directory like so:  C:\lsleditor '''NOTE:''' It will not work if you put it in a path with a space in the name like C:\Program Files\LSLEditor         updated 8/07/09


==Why go to all of this trouble?==
==Why go to all of this trouble?==
(Especially when LSLEditor does do a fantastic job now??)
(Especially when LSLEditor already does a fantastic job now??)


You can define custom actions. For instance if I type "random" in a script and hit "ctrl B", Scite inserts this:
You can define custom actions. For instance, if I type "random" in a script and hit "ctrl B", SciTE inserts this:
<lsl>integer rand_chan;
<syntaxhighlight lang="lsl2">integer rand_chan;
random() {
random() {
rand_chan = (integer) llFrand(-10000) - 10000000;
rand_chan = (integer) llFrand(-10000) - 10000000;
}</lsl>
}</syntaxhighlight>
And that is just one of my small custom definitions ;)
And that is just one of my small custom definitions ;)


You can also do includes which allows you to combine several common scripts.
You can also do includes which allows you to combine several common scripts.


The indent function is extremely powerful and you can customs define each and every setting to match the style you prefer.
The indent function is extremely powerful and you can custom define each and every setting to match the style you prefer.


So many more benefits that just bring it over the top. Among them is the ability to control all aspects of SciTE through outside scripts. There are a number of Lua scripts for SciTE. And the one I use (SciTE CVS) has perl scripts included to clean up code.
So many more benefits that just bring it over the top. Among them is the ability to control all aspects of SciTE through outside scripts. There are a number of Lua scripts for SciTE. And the one I use (SciTE CVS) has Perl scripts included to clean up code.


You can not only script in most languages, you can also setup the preferences for each language individually. When I am scripting in LSL here are some of the choices i have:
You can not only script in most languages, but you can also setup the preferences for each language individually. When I am scripting in LSL, here are some of the choices I have:


[[Image:SciTE.jpg]]
[[Image:SciTE.jpg]]

Latest revision as of 18:15, 28 January 2023

SciTE

Actively updating SciTE pages 8/07/09

Professional duty scripting workhorse. Script in multiple languages, compiles through Visual Studio C++ allowing you to use includes, define your own global variables, customise auto-indent, syntax check with lslint, customise wiki help, customise shortcuts, tabbed files, add bookmarks, opens files in LSLEditor for testing.

Many parts of this page will sound like an advertisement. SciTE is free, so no, I am not making any money off of this. It is just that SciTE has been sorely neglected for more then a year now. Ezhar Fairlight(Bless Him!!) brought us the original SciTE package for LSL, still functional but no longer maintained. Hopefully now others will start to play around with it.

You can get SciTE version 1.79 here. Once you have SciTE installed then you need to download and replace the following pages:

The rest of the functions that I have linked into my build are elsewhere. Strife was hosting those files and links but the stripper.exe and clipboard are no longer available there. I will update the links here for the published files and figure out a way to host his files with his permission if he is unable to. Until that time, I will make a zip file with the plugins and would be glad to email them to who needs them. updated 8/07/09

I have mine linked to LSLEditor. Download and extract to your root directory like so: C:\lsleditor NOTE: It will not work if you put it in a path with a space in the name like C:\Program Files\LSLEditor updated 8/07/09

Why go to all of this trouble?

(Especially when LSLEditor already does a fantastic job now??)

You can define custom actions. For instance, if I type "random" in a script and hit "ctrl B", SciTE inserts this:

integer rand_chan;
random() {
	 rand_chan = (integer) llFrand(-10000) - 10000000;
}

And that is just one of my small custom definitions ;)

You can also do includes which allows you to combine several common scripts.

The indent function is extremely powerful and you can custom define each and every setting to match the style you prefer.

So many more benefits that just bring it over the top. Among them is the ability to control all aspects of SciTE through outside scripts. There are a number of Lua scripts for SciTE. And the one I use (SciTE CVS) has Perl scripts included to clean up code.

You can not only script in most languages, but you can also setup the preferences for each language individually. When I am scripting in LSL, here are some of the choices I have:

SciTE.jpg