Home Download Buy Blog Forum Support

save before build?

save before build?

Postby superfake123 on Thu Jun 28, 2012 9:23 am

Hello,

I've made the following build file for PHP

Code: Select all
{
   "command": "save",
   "cmd": ["C:\\wamp\\bin\\php\\php5.3.10\\php.exe", "-l", "$file"],
   "selector": "source.php"
}


However I do not believe the save ever works? What am I missing?
superfake123
 
Posts: 24
Joined: Wed Jun 27, 2012 2:24 pm

Re: save before build?

Postby bizoo on Thu Jun 28, 2012 10:54 am

You cannot use a "command" in a build file.
This is the most complete reference http://docs.sublimetext.info/en/latest/reference/build_systems.html

In the "Tools" menu, there is a "Save All on Build" checkbox.
Is this what you want ?
bizoo
 
Posts: 886
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: save before build?

Postby superfake123 on Thu Jun 28, 2012 11:15 am

oh wow I'm blind, yep that works perfectly. thank you!
superfake123
 
Posts: 24
Joined: Wed Jun 27, 2012 2:24 pm


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 32 guests