Bringing Linden Scripting Language (LSL) support to Sublime Text.
With regards to the development of this package, supporting new features of Sublime Text as they become available takes precedence over ensuring backwards compatibility.
Therefore this package targets and is tested against the latest Build of Sublime Text, releases are frequent and the requirements for this package will be updated accordingly.
Implicitly this might require you to be on the dev
release channel and consequently have a valid Sublime Text license.
Build 4073
or later
Package Control
Tools > Install Package Control …
SublimeLinter
Tools > Command Palette
Package Control: Install Package
SublimeLinter
Make sure your setup meets the requirements before you:
Sublime Text
Tools > Command Palette
Package Control: Install Package
=BB= LSL
To get LSL syntax highlighting in tooltips, refer to the settings section.
Close and re-open Sublime Text
.
When editing scripts in the viewer, click the EDIT button in the script edit window. Save and close view (tab) when done.
To use Sublime Text
for editing your script in-world:
Me > Preferences > Advanced > Show Advanced menu
Advanced > Show Debug Settings
ExternalEditor
Setting consists of these three parts:
"%s"
will paste script path automatically (do NOT change this)For a list of Sublime arguments run subl --help
and/or refer to the OSX Command Line documentation.
"/usr/bin/subl" "%s"
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" "%s"
"C:\Program Files\Sublime Text\subl.exe" "%s"
runs
lslint
Tools > Build
on Linux or macOS.Tools > Build with …
on Windows and select a binary to use.Output to a Build results
panel, in which you can double click (possible) errors to move the cursor to that point in your file.
You can toggle using the official Color Scheme for LSL files by selecting Preferences > Package Settings > =BB= LSL > Settings > Use official color scheme for LSL files
from the main menu.
The color scheme file can be overridden via Packages/User/LSL.hidden-color-scheme
.
The issue tracker can be found at https://github.com/buildersbrewery/sublime-lsl/issues.
Please read CONTRIBUTING.md
and make sure tests pass before sending a pull request.
Requires the
SublimeLinter
package, uses the included binarieslslint
if not found inPATH
.Linting of LSL files using the Firestorm preprocessor was deprecated in
v5.0.0
.
You can change the indent style of all LSL completions and snippets to:
Allman
GNU
Horstmann
K & R
Lisp
Pico
Ratliff
Whitesmiths
by:
Preferences > Package Settings > =BB= LSL > Settings > Choose indent style
from the main menuPreferences: LSL: Settings - Indent Style
in the command paletteOpen Preferences > Settings
from the main menu.
These mdpopups.*
settings are needed to get LSL syntax highlighting in tooltips:
// "Packages/User/Preferences.sublime-settings"
{
"mdpopups.sublime_user_lang_map":
{
"lsl":
[
[ "lsl" ],
[ "=BB= LSL/.sublime/syntaxes/LSL" ]
]
},
"mdpopups.use_sublime_highlighter": true
}
mdpopups
.To get LSL syntax highlighting in tooltips, refer to the settings section.
Second Life (R) and the Linden Scripting Language are trademarks of Linden Research, Inc.
The Builder's Brewery is neither affiliated with nor sponsored by Linden Research.