8

Is there a way to set up sublime text 2 to build (or run) a php script I'm editing?

0

2 Answers 2

27

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.

enter image description here

3

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.