ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Sublime​Love

by minism ALL

LÖVE support for SublimeText2

Details

  • 2016.05.04.22.20.45
  • love2d.​org
  • github.​com
  • 9 years ago
  • 2 hours ago
  • 13 years ago

Installs

  • Total 8K
  • Win 5K
  • Mac 1K
  • Linux 2K
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 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 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
Windows 0 1 4 0 3 2 2 0 3 0 2 2 2 0 1 2 1 1 0 1 1 0 0 1 0 0 0 3 1 0 0 0 0 1 0 0 2 1 2 0 0 0 0 0 0 1
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 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
Linux 0 0 1 1 0 0 2 0 0 0 0 0 0 1 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1
012345Jan 6Jan 3Dec 31Dec 28Dec 25Dec 22Dec 19Dec 16Dec 13Dec 10Dec 7Dec 4Dec 1Nov 28Nov 25Nov 22Jan 6 Linux: 0 Mac: 0 Windows: 0Jan 5 Linux: 0 Mac: 0 Windows: 1Jan 4 Linux: 1 Mac: 0 Windows: 4Jan 3 Linux: 1 Mac: 0 Windows: 0Jan 2 Linux: 0 Mac: 0 Windows: 3Jan 1 Linux: 0 Mac: 0 Windows: 2Dec 31 Linux: 2 Mac: 0 Windows: 2Dec 30 Linux: 0 Mac: 0 Windows: 0Dec 29 Linux: 0 Mac: 0 Windows: 3Dec 28 Linux: 0 Mac: 0 Windows: 0Dec 27 Linux: 0 Mac: 0 Windows: 2Dec 26 Linux: 0 Mac: 0 Windows: 2Dec 25 Linux: 0 Mac: 0 Windows: 2Dec 24 Linux: 1 Mac: 1 Windows: 0Dec 23 Linux: 0 Mac: 0 Windows: 1Dec 22 Linux: 1 Mac: 0 Windows: 2Dec 21 Linux: 0 Mac: 0 Windows: 1Dec 20 Linux: 0 Mac: 0 Windows: 1Dec 19 Linux: 0 Mac: 0 Windows: 0Dec 18 Linux: 0 Mac: 0 Windows: 1Dec 17 Linux: 1 Mac: 0 Windows: 1Dec 16 Linux: 0 Mac: 0 Windows: 0Dec 15 Linux: 0 Mac: 0 Windows: 0Dec 14 Linux: 1 Mac: 0 Windows: 1Dec 13 Linux: 0 Mac: 0 Windows: 0Dec 12 Linux: 0 Mac: 0 Windows: 0Dec 11 Linux: 0 Mac: 0 Windows: 0Dec 10 Linux: 0 Mac: 0 Windows: 3Dec 9 Linux: 0 Mac: 0 Windows: 1Dec 8 Linux: 0 Mac: 0 Windows: 0Dec 7 Linux: 0 Mac: 0 Windows: 0Dec 6 Linux: 0 Mac: 0 Windows: 0Dec 5 Linux: 0 Mac: 0 Windows: 0Dec 4 Linux: 1 Mac: 0 Windows: 1Dec 3 Linux: 0 Mac: 0 Windows: 0Dec 2 Linux: 0 Mac: 0 Windows: 0Dec 1 Linux: 0 Mac: 0 Windows: 2Nov 30 Linux: 0 Mac: 0 Windows: 1Nov 29 Linux: 0 Mac: 0 Windows: 2Nov 28 Linux: 0 Mac: 0 Windows: 0Nov 27 Linux: 0 Mac: 0 Windows: 0Nov 26 Linux: 0 Mac: 0 Windows: 0Nov 25 Linux: 0 Mac: 0 Windows: 0Nov 24 Linux: 0 Mac: 0 Windows: 0Nov 23 Linux: 0 Mac: 0 Windows: 0Nov 22 Linux: 1 Mac: 0 Windows: 1Jan 6 Linux: 0 Mac: 0 Windows: 0Jan 5 Linux: 0 Mac: 0 Windows: 1Jan 4 Linux: 1 Mac: 0 Windows: 4Jan 3 Linux: 1 Mac: 0 Windows: 0Jan 2 Linux: 0 Mac: 0 Windows: 3Jan 1 Linux: 0 Mac: 0 Windows: 2Dec 31 Linux: 2 Mac: 0 Windows: 2Dec 30 Linux: 0 Mac: 0 Windows: 0Dec 29 Linux: 0 Mac: 0 Windows: 3Dec 28 Linux: 0 Mac: 0 Windows: 0Dec 27 Linux: 0 Mac: 0 Windows: 2Dec 26 Linux: 0 Mac: 0 Windows: 2Dec 25 Linux: 0 Mac: 0 Windows: 2Dec 24 Linux: 1 Mac: 1 Windows: 0Dec 23 Linux: 0 Mac: 0 Windows: 1Dec 22 Linux: 1 Mac: 0 Windows: 2Dec 21 Linux: 0 Mac: 0 Windows: 1Dec 20 Linux: 0 Mac: 0 Windows: 1Dec 19 Linux: 0 Mac: 0 Windows: 0Dec 18 Linux: 0 Mac: 0 Windows: 1Dec 17 Linux: 1 Mac: 0 Windows: 1Dec 16 Linux: 0 Mac: 0 Windows: 0Dec 15 Linux: 0 Mac: 0 Windows: 0Dec 14 Linux: 1 Mac: 0 Windows: 1Dec 13 Linux: 0 Mac: 0 Windows: 0Dec 12 Linux: 0 Mac: 0 Windows: 0Dec 11 Linux: 0 Mac: 0 Windows: 0Dec 10 Linux: 0 Mac: 0 Windows: 3Dec 9 Linux: 0 Mac: 0 Windows: 1Dec 8 Linux: 0 Mac: 0 Windows: 0Dec 7 Linux: 0 Mac: 0 Windows: 0Dec 6 Linux: 0 Mac: 0 Windows: 0Dec 5 Linux: 0 Mac: 0 Windows: 0Dec 4 Linux: 1 Mac: 0 Windows: 1Dec 3 Linux: 0 Mac: 0 Windows: 0Dec 2 Linux: 0 Mac: 0 Windows: 0Dec 1 Linux: 0 Mac: 0 Windows: 2Nov 30 Linux: 0 Mac: 0 Windows: 1Nov 29 Linux: 0 Mac: 0 Windows: 2Nov 28 Linux: 0 Mac: 0 Windows: 0Nov 27 Linux: 0 Mac: 0 Windows: 0Nov 26 Linux: 0 Mac: 0 Windows: 0Nov 25 Linux: 0 Mac: 0 Windows: 0Nov 24 Linux: 0 Mac: 0 Windows: 0Nov 23 Linux: 0 Mac: 0 Windows: 0Nov 22 Linux: 1 Mac: 0 Windows: 1Jan 6 Linux: 0 Mac: 0 Windows: 0Jan 5 Linux: 0 Mac: 0 Windows: 1Jan 4 Linux: 1 Mac: 0 Windows: 4Jan 3 Linux: 1 Mac: 0 Windows: 0Jan 2 Linux: 0 Mac: 0 Windows: 3Jan 1 Linux: 0 Mac: 0 Windows: 2Dec 31 Linux: 2 Mac: 0 Windows: 2Dec 30 Linux: 0 Mac: 0 Windows: 0Dec 29 Linux: 0 Mac: 0 Windows: 3Dec 28 Linux: 0 Mac: 0 Windows: 0Dec 27 Linux: 0 Mac: 0 Windows: 2Dec 26 Linux: 0 Mac: 0 Windows: 2Dec 25 Linux: 0 Mac: 0 Windows: 2Dec 24 Linux: 1 Mac: 1 Windows: 0Dec 23 Linux: 0 Mac: 0 Windows: 1Dec 22 Linux: 1 Mac: 0 Windows: 2Dec 21 Linux: 0 Mac: 0 Windows: 1Dec 20 Linux: 0 Mac: 0 Windows: 1Dec 19 Linux: 0 Mac: 0 Windows: 0Dec 18 Linux: 0 Mac: 0 Windows: 1Dec 17 Linux: 1 Mac: 0 Windows: 1Dec 16 Linux: 0 Mac: 0 Windows: 0Dec 15 Linux: 0 Mac: 0 Windows: 0Dec 14 Linux: 1 Mac: 0 Windows: 1Dec 13 Linux: 0 Mac: 0 Windows: 0Dec 12 Linux: 0 Mac: 0 Windows: 0Dec 11 Linux: 0 Mac: 0 Windows: 0Dec 10 Linux: 0 Mac: 0 Windows: 3Dec 9 Linux: 0 Mac: 0 Windows: 1Dec 8 Linux: 0 Mac: 0 Windows: 0Dec 7 Linux: 0 Mac: 0 Windows: 0Dec 6 Linux: 0 Mac: 0 Windows: 0Dec 5 Linux: 0 Mac: 0 Windows: 0Dec 4 Linux: 1 Mac: 0 Windows: 1Dec 3 Linux: 0 Mac: 0 Windows: 0Dec 2 Linux: 0 Mac: 0 Windows: 0Dec 1 Linux: 0 Mac: 0 Windows: 2Nov 30 Linux: 0 Mac: 0 Windows: 1Nov 29 Linux: 0 Mac: 0 Windows: 2Nov 28 Linux: 0 Mac: 0 Windows: 0Nov 27 Linux: 0 Mac: 0 Windows: 0Nov 26 Linux: 0 Mac: 0 Windows: 0Nov 25 Linux: 0 Mac: 0 Windows: 0Nov 24 Linux: 0 Mac: 0 Windows: 0Nov 23 Linux: 0 Mac: 0 Windows: 0Nov 22 Linux: 1 Mac: 0 Windows: 1

Readme

Source
raw.​githubusercontent.​com

Description

SublimeLove is a package for Sublime Text 2 supporting the Love2D API.

Currently in alpha and still heavily a work in progress.

Installation

You can install this package by running the following command in your ST2 Packages directory:

git clone git://github.com/minism/SublimeLove.git

Features

Syntax highlighting

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.

Auto completion

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.

Build system

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.

Links

Development

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