Useful Applescripts for coding PHP in BBEdit
At work I spend a lot of time coding, which means I also spend a lot of time using BBEdit. Thankfully it’s a fantastic program with excellent Applescript integration. As a PHP coder, I thought I’d share some of the great Applescripts that are out there to enhance your coding experience, and hopefully save you some time.
- VoidFillPHP
- This is a PHP code completion script. Type the beginning of function name, hit F1 (or whatever key you’ve assigned it to), and it provides a list a potential matches (e.g. type
htmland you can choose fromhtml_entity_decode,htmlentitiesorhtmlspecialchars). - Search php.net for selection
- It does what it says on the tin. Highlight a PHP function or keyword, hit the assigned key combination, and it fires up a browser window and searches through the manual on php.net for the function or keyword. Very useful if you’ve not got a PHP reference book handy.
- PHP Syntax Check
- Written by John Gruber (a former Bare Bones developer, so he obviously knows a thing or two), this flexible script can scan your document for PHP parsing errors (highlighting the problematic lines). The script can also replace the built-in HTML Document Syntax command, so it can check the syntax of your HTML also. Pretty nifty huh?
What other Applescripts make your BBEdit life easier?
Posted 6 years, 7 months ago