Skip to content

Instantly share code, notes, and snippets.

@steinmb
Created March 13, 2013 11:49
Show Gist options
  • Save steinmb/5151384 to your computer and use it in GitHub Desktop.
Save steinmb/5151384 to your computer and use it in GitHub Desktop.
Sublimetext 2 PHP build system. Goto Tools->Build system->New build system. Replace content with this. You are now able to build PHP directly within ST2 by running Tool->Build or crtl+B/command+B(OS X).
{
"cmd": ["php", "-d", "error_prepend_string=''", "-d", "error_append_string=''", "-d", "xdebug.default_enable='Off'", "-f", "$file"],
"file_regex": ".*(?: in )(.*) on line ([0-9]*)",
"selector": "source.php"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment