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

From Second Life Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
Work in progress
==SciTE==
(Page is under construction)


*[[User:Jesse Barnett/lsl.api|lsl.api]]
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.


*[[User:Jesse Barnett/lsl.properties|lsl.properties]]
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 brought us the original SciTE package for LSL, still functional but no longer maintained. Hopefully now others will start to play around with it.


*[[User:Jesse Barnett/lsl_abbrev.properties|lsl_abbrev.properties]]
You can get SciTE here: [[http://www.scintilla.org/SciTE.html]]


*[[User:Jesse Barnett/SciTEGlobal.properties|SciTEGlobal.properties]]
Personally I use this installer: [[http://amip.tools-for.net/SciTE-CVS.exe]] It has support for several languages and has perl work scripts included.


*[[User:Jesse Barnett/SciTEUser.properties|SciTEUser.properties]]
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]]
 
*[[User:Jesse_Barnett/lsl.properties|lsl.properties]]
 
*[[User:Jesse_Barnett/lsl_abbrev.properties|lsl_abbrev.properties]]
 
*[[User:Jesse_Barnett/SciTEGlobal.properties|SciTEGlobal.properties]]
 
*[[User:Jesse_Barnett/SciTEUser.properties|SciTEUser.properties]]
 
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]]
 
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)
 
==Why go to all of this trouble?==
(Especially when LSLEditor does do 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:
<lsl>integer rand_chan;
random() {
rand_chan = (integer) llFrand(-10000) - 10000000;
}</lsl>
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 customs 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.
 
Finally with Scite you only need one editor, no matter which language you are coding in today.

Revision as of 21:03, 29 January 2008

SciTE

(Page is under construction)

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 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 here: [[1]]

Personally I use this installer: [[2]] It has support for several languages and has perl work scripts included.

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:

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. [[3]]

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)

Why go to all of this trouble?

(Especially when LSLEditor does do 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: <lsl>integer rand_chan; random() { rand_chan = (integer) llFrand(-10000) - 10000000; }</lsl> 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 customs 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.

Finally with Scite you only need one editor, no matter which language you are coding in today.