LiveCode
LiveCode Language Package for SublimeText
Details
Installs
- Total 18K
- Win 14K
- Mac 2K
- Linux 2K
Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 2 | 3 | 0 | 0 | 0 | 0 | 0 | 3 | 3 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 4 | 0 | 1 | 2 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 0 | 1 | 2 |
Mac | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
livecode-sublimetext
LiveCode Package for Sublime Text
What does this package do?
The package adds syntax highlighting, auto completion, and symbol indexing (on, command, function, getprop/setprop) for LiveCode files. It is intended for editing script only stacks. The package includes a number of snippets that provide auto completion when creating new handlers, if-then statements, try/catch blocks, etc.
Auto complete is also provided for all keywords, properties, functions, and commands.
Notifying LiveCode of script only stack updates
When using the LiveCode package you can configure a Sublime Text project to send a request to a server each time you save a LiveCode file. This allows you to notify a stack in LiveCode that is accepting connections about updates to scripts.
To send requests to a specified server and port whenever LiveCode files are saved, create a Sublime Text project for your folder tree. Once you have done that, edit the .sublime-project
file. Here is an example.
You will need to modify “MyProject” and possibly the port number that you are using.
{
"folders":
[
{
"folder_exclude_patterns":
[
"_builds"
],
"path": ".",
"name": "MyProject",
}
],
"livecode":
{
"notify_on_save": true,
"notify_server":
{
"host": "localhost",
"port": 61373,
"debug": false
}
}
}
Suggested Configuration
Here are some suggested user configuration settings for Sublime Text:
{
"auto_complete": false,
"auto_complete_commit_on_tab": true,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"ensure_newline_at_eof_on_save": true,
...
}
auto_complete: Set to false so that auto complete suggestions don't appear while typing. Press Control + Spacebar to show a list of suggestions. auto_complete_commit_on_tab: Press TAB to auto complete using the first match. The TAB key can be useful when you want to auto complete a variable name you are typing. translate_tabs_to_spaces: Always store spaces instead of tabs. trim_trailing_white_space_on_save: Remove any trailing white space from all lines when saving. This helps you avoid your version control system seeing files as being changed when there is only trailing white space. ensure_newline_at_eof_on_save: Always add a newline at the end of the file when saving.
Screencasts
- Configuring Sublime Text User Settings when Working with LiveCode
- Connecting a Sublime Text project to a Levure appllication running in the LiveCode IDE
Plugin installation
Please use Package Control to install the linter plugin. This will ensure that the plugin will be updated when new versions are available. If you want to install from source so you can modify the source code, you probably know what you are doing so we won’t cover that here.
To install via Package Control, do the following:
Within Sublime Text, bring up the Command Palette and type
install
. Among the commands you should seePackage Control: Install Package
. If that command is not highlighted, use the keyboard or mouse to select it. There will be a pause of a few seconds while Package Control fetches the list of available plugins.When the plugin list appears, type
livecode
. Among the entries you should seeLiveCode
. If that entry is not highlighted, use the keyboard or mouse to select it.