Add a PHP syntax checker to BBEdit

Jun 10, '03 09:27:00AM

Contributed by: tgm

I'm not too familiar with AppleScript, but I managed to add PHP syntax checking functionality to BBEdit using the following script. If you run the script and there's an error in the active document, it will show you the error and highlight the line with the error. It uses the php binary in /usr -> local -> bin -> php) with parameter -l to do the actual checking.

[robg adds: I've put the text of the script online for download -- bbedit_php.sit. I don't have BBEdit to this with, so if you try it, please post your comments.]

Comments (10)


Mac OS X Hints
http://hints.macworld.com/article.php?story=2003060709240859