Starbound Lua
Syntax highlighter and autocompletions for the Starbound Lua API
Details
Installs
- Total 834
- Win 621
- Mac 153
- Linux 60
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Starbound Lua
This plugin enables syntax highlighting and autocompletion for Starbound Lua in Sublime Text 2 or Sublime Text 3. (Sublime Text 3 is HIGHLY recommended!)
To install this, it is recommended that you use Package Control to automatically receive the latest updates and make the entire process much simpler. This will ensure that you do not need to check this page for updates every time an update is released for Starbound as the API is constantly changing and being added to.
Package Control Installation:
- Open Sublime Text and press Shift+Ctrl+P.
- Type
install
and press enter. - Another text box should appear, type
Starbound
and you should see this plugin highlighted. Press Enter to install it.
Sublime Text 3 (and possibly 2)
- Once you have it installed you may need to disable the default Lua syntax (Sublime will probably try to suggest functions from default Lua). Press Shift+Ctrl+P again.
- Type
disable
and press enter. - Type
lua
and press enter.
Manual Installation:
- Download this Git Repository's master branch as a
.zip
file. (Or you can download the latest release.) - Navigate to
Preferences > Browse Packages...
. - Put the folder from the
.zip
into the location that was opened. - Restart Sublime.
Sublime Text 3 (and possibly 2)
- Once you have it installed you may need to disable the default Lua syntax (Sublime will probably try to suggest functions from default Lua). Navigate to
Preferences > Settings - User
. - Add the following text:
{
"ignored_packages":
[
"Vintage",
"Lua"
]
}
Usage
Navigate to View > Syntax > Starbound Lua
to apply the syntax to the current file and any newly opened files.
There are also custom templates for groups of specific lua hooks with documentation available. To use them, type TEMPLATE
and use the arrow keys to select the correct template for your .lua
file, then press Tab or Enter. These are intended for blank files and will immediately paste all known lua hooks for the selected category. You may press Tab again multiple times to highlight a predetermined order of text blocks for ease of editing. Moving your text cursor outside of the range of one of these text blocks will end the use of Tab selecting for all code snippets. These snippets will use hook information from the developers when available. Otherwise it is information gathered by trial and error.
If you have other custom Lua syntaxes…
If their scope is not correctly set, their functions and snippets will be suggested too. You can also disable them by doing the same steps above that you may have used for the default Lua syntax. (This syntax should never interfere with any other syntax. Please report it to me if it does.)
Suggestions
Open an issue if you would like to suggest anything. Or you can find me on the #starbound and ##starbound-modding IRC channels as UnknownX
. (or the forums)
Nightly Branch
This branch is no longer needed and has been discontinued.
This branch is for upcoming changes to the Lua API. This will not be merged with the master branch until a stable update is released and changes are verified.