Is there a way to set up sublime text 2 to build (or run) a php script I'm editing?
if you are linux or mac user you can do that.
Tools -> Build System ->New Build System
{
"cmd": ["php" , "$file"]
}
It'll run your php codes on sublime text console
here is a screenshot if you wonder how does it look like.
You can do Tools -> Build System -> New Build System...
and then edit the file like so:
{
"cmd": ["/path/to/some/script/that/runs/your/project"]
}
Then save it, and from your project, select Tools -> Build System -> <your new name>
Now you can hit control-shift-b to run the script.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With