Created
December 15, 2011 15:34
-
-
Save ronanguilloux/1481511 to your computer and use it in GitHub Desktop.
php -l syntaxt check in sublime-text 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// 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