Skip to content

Instantly share code, notes, and snippets.

@ronanguilloux
Created December 15, 2011 15:34
Show Gist options
  • Save ronanguilloux/1481511 to your computer and use it in GitHub Desktop.
Save ronanguilloux/1481511 to your computer and use it in GitHub Desktop.
php -l syntaxt check in sublime-text 2
// place this 'PHP.sublime-build' file in ~/.config/sublime-text-2/Packages/User/
{
"cmd": ["/usr/bin/php", "-l", "$file"],
"selector": "source.php",
"file_regex": "^Parse error: .* in (.*?) on line ([0-9]*)"
}
// Then restart ST2 & type 'CTRL+B' to use it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment