LÖVE support for SublimeText2
- Total 7K
- Win 4K
- Mac 1K
- Linux 1K
|Feb 8||Feb 7||Feb 6||Feb 5||Feb 4||Feb 3||Feb 2||Feb 1||Jan 31||Jan 30||Jan 29||Jan 28||Jan 27||Jan 26||Jan 25||Jan 24||Jan 23||Jan 22||Jan 21||Jan 20||Jan 19||Jan 18||Jan 17||Jan 16||Jan 15||Jan 14||Jan 13||Jan 12||Jan 11||Jan 10||Jan 9||Jan 8||Jan 7||Jan 6||Jan 5||Jan 4||Jan 3||Jan 2||Jan 1||Dec 31||Dec 30||Dec 29||Dec 28||Dec 27||Dec 26||Dec 25|
Currently in alpha and still heavily a work in progress.
You can install this package by running the following command in your ST2 Packages directory:
git clone git://github.com/minism/SublimeLove.git
Hit ctrl/cmd+P, or go to View > Syntax, and set the syntax of your open file to “Lua (Love)” to enable highlighting for the Love2D API functions. On my editor, lua files are now defaulting to this syntax, but I'm not sure how to control that.
If you create a new pixel effect, and make the argument a multi-line string, then Sublime will use C syntax highlighting for the GLSL content.
Pressing ctrl+space in an open Love file will show the autocompletions for the API functions. ST2 currently has some issues with autocomplete that other plugins are also dealing with, so its not perfect yet. One major issue is that the period key breaks tokens and doesn't get included as part of the autocomplete query.
Those Love2D functions which are not overloaded (only one possible argument combination), will fill in the argument names for you.
To use the build command, the Love executable needs to be on your system PATH. Then, go to Tools > Build System and select “Love”. Hit F7 or cmd+B to run your Love program.
The build system will automatically be selected for lua files.
Go to the src directory. If Love2D has been updated, run scrape_api.py, which generates api.txt and callbacks.txt, then run build.py which assembles the Sublime files.
Love.JSON-tmLanguage is an expanded version of the Lua syntax highlighter. Leave the lua-love repository entry empty, as its filled in by build.py