Alternate Editors
Since the built-in
editor supports pasting
text from the clipboard, a different alternate editor can be used to edit
scripts, copying them into
Second Life when they're ready to be saved. This is useful when the
grid is down, or when you don't have access to a computer that can run
SL. Several of these editors will even run off of a USB key (thumb drive?). Editors can be/include
syntax checkers and syntax colorers/highlighters.
For some of the editors mentioned here, the
Shill project may have more up-to-date syntax files.
Compilers/Debuggers
Con Wylie's Script Generator
-
http://conwylie.co.uk/ScriptGenerator/
Con Wylie's LSL Script Generator has been ported from a website into a free downloadable program.
Con Wylie's LSL program is multi-platform on Windows, Linux and Mac. The generator, editor and compiler has been build from the ground up to give the user ease of use.
LSL Plus
-
http://lslplus.sourceforge.net
LSL Plus is an Eclipse based LSL editor, compiler, simulator, debugger, with:
- source level debugging (set breakpoints, examine variable values, etc.)
- editing with autocompletion, syntax highlighting, tooltip documentation, etc.
- a unit test environment
- a multi-script, multi-object, multi-avatar complex simulation environment
- sophisticated optimization, and module system (reuse code without cut and paste!)
- code auto completion
- auto insert events
- argument information on functions
- customizable syntax hilighting
- integration with source control (CVS, Subversion, others)
Works on Windows, Linux, and Mac, and is FLOSS, so you should be able to make it work on your platform.
LSL-Editor
LSL-Editor is a standalone Windows LSL script editor (and compiler, debugger), featuring (current version 2.12):
- Code highlighting (including Brackets matching)
- Code auto completion (Like Visual Studio)
- Auto insert events
- Argument information on functions (typing)
- Tabbed or MDI interface
- LSLWiki or SecondLife color scheme
- Code editing ( Copy / Cut / Paste / Delete / Undo / Redo / Find / Replace / Clipboard function)
- Block commenting / uncommenting
- Tooltip on keywords (LSL-Editor contains complete LSL guide!)
- Auto-indent (using tabs or SecondLife indent scheme)
- Help, on every keyword, uses www.LSLwiki.NET information
- HTML Help option
- Compiling, Execution and Debugging outside SecondLife world
- llDialog input screen
- Printing
- You don't have to install (!) the program, unzip en use it.
- The program is updated on regular intervals, so check your update button
Windows XP , Windows 2000 , Windows 2003, Windows Vista
- .NET 2.x has to be installed (standard on most Windows machines)
Editors
BBEdit and TextWrangler
A BBEdit 7.0 language module for LSL is at
http://adammarker.org/. The module will also work with TextWrangler 1.0. A BBEdit 8.2 "codeless" language module is at
http://mohland.com/lsl.html. The module will also work with TextWrangler 2.1. While it does not support all the features as the aforementioned language module, it does support syntax coloring.
BBEdit is a
code and HTML editor for the Macintosh. TextWrangler is BBEdit's little brother. They are products available from
Bare Bones Software. Unfortunately, BBEdit has moved on while this language module has not.
The language module "LSL" does not support Unicode, and so cannot be used with this version of BBEdit. Please remove the language module and contact its developer for assistance. -?
If anyone knows how to fix this, it would be of great value methinks. -
MaxCase
I wrote the language module mentioned above, but I do not know how to make it support Unicode. I would be happy to share my source code with anyone who would like to give it a try. -
AdamMarker
For the new BBEdit 8.5 use the language module 'lsl.plist' at
http://mohland.com/lsl.html but see
http://forums.secondcitizen.com/showthread.php?t=2631 for a little patch to apply to the module. -
HerbertHoggard
Code-Genie
Code-Genie is mostly a text-editor that can dynamically color/highlight code based on rules, but it also has some other cool features such as code-indenting and block-checking (finding/matching sets of
parentheses and
braces). Check it out at:
http://www.code-genie.com
I believe you can download the editor and try it free for awhile. -?
As of 13 Jan 2007, the Code Genie web site seems broken, but a web search will turn up otheer download sources for it.
There is a
file that highlights code in Code-Genie almost exactly the same as when you're working with SL's built-in editor. It contains every built-in
constant,
function,
event, data-
type,
operator, etc.
Crimson Editor
Crimson Editor is a small, fast,
freeware/donationware source code editor for Windows. Available at
http://www.crimsoneditor.com/.
Very comparable to
UltraEdit (but free), it's got all the features that you would expect: syntax highlighting, macros, unicode encodings, column mode, hooks to user tools, etc.
I've uploaded link and specification files for LSL to the Syntax Files section at
http://www.crimsoneditor.com. These are complete for SL 1.7.2 and have been tested with Crimson Editor 3.70.
TemplarBaphomet
I have uploaded new LSL Syntax files at the same site, for SL 1.10.0 also tested with Crimson Editor 3.70.
AakanaarLaSalle
write my paper
See
thread for details.
EditPlus
EditPlus site:
http://www.editplus.com
Get
Ezhar's EditPlus syntax and autocompletion files at
sl.sdfjkl.org (
no longer maintained and incomplete - use SciTE-ez instead).
I have updated syntax files for LSL 1.7.1 for EditPlus 2. Get the file at this thread. Download link is back now
Emacs
Phoenix Linden posted an LSL mode for Emacs in 2002, at
Technical Issues forum thread. Other people have either improved upon that or wrote their own.
Currently, the best 2 are probably:
xlsl-mode by Xah Lee. Download at:
http://xahlee.org/sl/ls-emacs.html
lsl-mode by Reinhard Neurocam and others. Download at:
http://github.com/taladar/lsl-mode/tree/master/lsl-mode.el
If you want syntax checking, also checkout the lslint on this page. Both modes above intergrates with lslint if you have it installed.
Gnome's Editor (GEdit / gtksourceview-1.0)
Text editor for Linux Gnome environment. Use with gtksourceview-1.0 and may be working with any other text editors and source editors in Gnome environment that use gtksourceview-1.0 module.
To install, just extract "lsl.lang" to:
<Gnome Directory>/gtksourceview-1.0/language-specs
For ME it is at:
/usr/share/gtksourceview-1.0/language-specs
To download: See
http://forums.secondlife.com/showthread.php?p=1134163
KDE's Text Editor Component (katepart)
For use with the Linux K Desktop Environment (KDE). Use with any text editor that uses kateparts, such as Quanta Plus and Kate.
A katepart LSL syntax highlighter can be found here:
http://www.transarcadia.com/lsl.xml
To install, copy the XML file to ~/.kde/share/apps/katepart/syntax
Not tested with KDE 4.
jEdit
The current support for jEdit is a syntax highlighter, created by
KeilaronTomba. (
Last updated on 04/25/2007 thanks to TrentMondrian. If the site seems unavailable, just try again. -?) Download the
jEdit LSL edit mode (syntax highlighter) and follow the instructions below. (Note that the directories will not exist if you have not already run jEdit. Run jEdit first!)
Windows:
- The edit mode is placed in %AppData%\..\.jedit\modes
- Edit the %AppData%\..\.jedit\modes\catalog file as below.
Linux:
- The edit mode is placed in ~/.jedit/modes
- Edit the ~/.jedit/modes/catalog file as below.
Mac OS X:
- The edit mode is placed in the modes folder (found in the jEdit application folder).
- Edit the catalog file (also found in the modes folder) as below.
Note that this file does not include parsing.
Editing the
catalog file: Instructions are inside, but if you are confused or uncertain, just use the following line. Any files with the .lsl extension will be recognized.
<MODE NAME="lsl" FILE="lsl-edit.xml" FILE_NAME_GLOB="*.lsl" />
Notepad++
Notepad++ can be obtained at this link:
http://notepad-plus.sourceforge.net/uk/site.htm
Follow the link below to a message thread on the main forums that contains a zip file with LSL syntax highlighting updated for SL 1.10.0 and autocomplete abilities current to SL 1.8. The first post in the thread contains instructions for installing the language file. Contact Samson Havercamp for questions.
http://forums.secondlife.com/showthread.php?p=1070270#post1070270
For those of you that cannot access the forum use this link for a similar file. Just open the link and follow the instructions. (includes syntax higlighting similar to that of the in-game editor) If you have any questions contact Roiie Basevi in game, thank you.
http://info-tech.007ihost.com/lsl/index.html
Mirror:
userDefineLang.xml (syntax highlighting) and
lsl.api (Auto-complete)
See the
User Manual (pdf) for installation instructions.
SciTE-ez
A customized package of
SciTE, sporting syntax highlighting, folding, autocompletion and
tooltips for the whole LSL API. Also includes syntax highlighting and advanced features for many other languages, such as PHP and Perl.
Available at
sdfjkl.org
This is no longer supported at this site, but updated syntax files can be had at http://adammarker.org/shill/.
Recommended by SevenEightTwo, CirrMarat, DavidGall, CatherineOmega, ChristopherOmega, KeknehvPsaltery, StrifeOnizuka, VirusCollector, and of course, EzharFairlight.
To use lslint with SciTE-ez, first make sure lslint.exe is in the same folder as scite.exe is. Then pull down the Options menu and select "Open lsl.properties". Add this line:
command.build.$(file.patterns.lsl)="$(SciteDefaultHome)\lslint.exe" "$(FileName).lsl"
This enables the Build option in the Tools menu. When you click Tools>Build or press F7, lslint runs and checks the script.
SciTE-LSL
Scite with a new lexer for lsl.
This allows enough syntax coloring options for lsl, and treats lsl like lsl, instead of C or something else.
Somewhat buggy support for highlighting errors in your code with lslint.
Should compile on all platforms that scite is designed for.
http://forums.secondlife.com/showthread.php?t=209219
http://dimension128.110mb.com
Smultron
Smultron can be found at
http://smultron.sourceforge.net/. It's a mac freeware text editor. Sadly it doesn't have an lsl syntax module yet, but despite that I now use it in preference to BBEdit for 90% of my text editing needs... if they add saved greps it will be 100%. It does some nice things like autoindent, group indents etc. in a very friendly fashion, and works wonderfully for php etc.
SynEdit
Thread
Here's my little attempt to make a LSL syntax highlighter for SynEdit.
Should work with latest CVS version of SynEdit, not tested in Kylix or Lazarus, but should work without much modification, if any.
Will be registered as TSynHighlighterLSL.
Pascal source code here -?
TextMate
LeonAsh has posted an
LSL bundle for TextMate in the forums.
TextMate is a commercial Mac OS X text/program editor from Macromates. The thread includes some bonus snippets, plus commands to call lslint and locate a function in the LSL Wiki.
An
expanded bundle by Piero Padar:
instructions and download link
TextPad
TextPad is a powerful, general purpose editor for plain text files. A
syntax definition file is available for LSL.
Also check
this website and
this forum thread for a TextPad syntax definition file and clip library created by
SeanGorham here.
UltraEdit
UltraEdit features syntax highlighting and block indication (like Code-Genie). See
this forum thread for information on syntax highlighting files.
Update: Alondria has a syntax file current as of SL 1.5-Pre-2
(I think I got it all). See
this thread.
Update:
I have written a new Wordfile and put it up here. This file contains only the entries for the LSL highlighting and as far as I can tell current up to SL 1.6.12(6) (the current version as I wrote it). If you find anything missing please let me know. -
GrazelCosmo
Update: I have made a
new wordfile for LSL that has all functions and constants up to 1.14.1.0. -
StryfeLowell
vim
[Instructions below are for Vim 6.3; it may not be accurate for older versions, but should at least work in 6.2.]
A new and improved vim syntax file is available
here. It's based on the syntax file that
KeedonPollack made that used to be here. It's current as of 1.4.11; I'll update it for 1.5 when 1.5 goes live.
For Windows, save it as
lsl.vim in
$VIMRUNTIME/syntax (defaults to
c:/Program Files/vim/vimfiles/syntax for a Vim 6.3 install) and add the following lines to your
_vimrc (defaults to
c:/Program Files/Vim/_vimrc):
augroup filetypedetect
au BufNewFile,BufRead *.lsl setf lsl
augroup END
For the various Unices and MacOS, the basic procedure should be the same, but you're on your own as far as figuring out where the files go.
For Ubuntu here is what to do:
1. download the lsl.vim file to a sensible location
2. open the file with vim and type:
this will convert the file to unix format.
3. copy the file to the vim share files:
cp lsl.vim /usr/share/vim/vim63/syntax/lsl.vim
4. edit your .vimrc in the same way as the windows version. This can be found in your home directory.
5. Your done fire up vim and edit.
There's a dictionary file
here which can be used with vim's autocomplete function (Ctrl-P) by running the command
:set complete=k<path-to-file> when editing an LSL file. Also, if you're using Mac OS X, I made an LSL Editor in Cocoa. The source is there, too, with a half-implemented LSL parser that I was working on (but never finished).
MoinMoin Wiki
Code can also be edited in a MoinMoin Wiki of your own and have the code highlighted with the LSL parser plugin at
http://moinmoin.wikiwikiweb.de/parser/lsl.py. See also
page in SecondTux Wiki
Syntax Checkers
lslint
Command-Line LSL Syntax Checker
lslint is a tool to check the syntactic and semantic validity of LSL scripts. It is basically a
compiler that doesn't compile, but has helpful error messages, warnings, and checks for some common problems in LSL. It is mainly for use with an external editor.
http://w-hat.com/lslint/
Scripting Tools
Con Wylie's Script Generator
-
http://conwylie.co.uk/ScriptGenerator/
Con Wylie's Script Generator is a free online Second Life tool that generates LSL scripts to use in your objects. All scripts created are free to use and sell. The very easy to use GUI makes scripting fun for all, no coding needed just follow the steps to suit your needs. The tool also has a easy to read colored syntax.
Kann man mit Eiweiss abnehmen
MiceOnABeam
Visual Scripting Tool
MiceOnABeam is a visual programming tool that generates LSL scripts for SL. You choose among graphical modeling components to specify the program flow of your script in terms of states and the events that transition between the states. You can then use the built-in LSL Action Wizard or insert your own LSL code to specify what happens when an event occurs. The program then generates the LSL code for the model to form a complete script for the SL environment. Check out the demo video
here or on
YouTube. A Free version can be downloaded
here