Difference between revisions of "Sublime Text"

(Created page with "''Sublime Text is a sophisticated text editor for code, markup and prose.'' == Running love projects from Sublime Text 2 == Create a new Build System first: Tools -> Build Syst...")
 
Line 2: Line 2:
  
 
== Running love projects from Sublime Text 2  ==
 
== Running love projects from Sublime Text 2  ==
 +
 +
=== On Windows ===
 
Create a new Build System first: Tools -> Build System -> New Build System
 
Create a new Build System first: Tools -> Build System -> New Build System
  
Line 13: Line 15:
  
 
Now you can use CTRL + B to run your love project.
 
Now you can use CTRL + B to run your love project.
 +
 +
=== On Mac ===
 +
 +
Create a new Build System first: Tools -> Build System -> New Build System
 +
 +
Then paste in the following code:
 +
<source lang="ini">
 +
{
 +
    "selector": "source.lua",
 +
    "cmd": ["/Applications/love.app/Contents/MacOS/love", "$file_path"]
 +
}
 +
</source>
 +
(This is assuming that your love.app is in the Applications folder)
 +
 +
Now you can use CMD + B to run your love project.
  
 
== See also ==
 
== See also ==

Revision as of 11:09, 13 June 2013

Sublime Text is a sophisticated text editor for code, markup and prose.

Running love projects from Sublime Text 2

On Windows

Create a new Build System first: Tools -> Build System -> New Build System

Then paste the following code:

{
    "selector": "source.lua",
    "cmd": ["love", "$file_path"]
}

Now you can use CTRL + B to run your love project.

On Mac

Create a new Build System first: Tools -> Build System -> New Build System

Then paste in the following code:

{
    "selector": "source.lua",
    "cmd": ["/Applications/love.app/Contents/MacOS/love", "$file_path"]
}

(This is assuming that your love.app is in the Applications folder)

Now you can use CMD + B to run your love project.

See also