On Mar 29, 2008, at 3:02 PM, Carlton Gibson wrote:
I tried this message on the BBEdit-Scripting list but it never
seemed to arrive (in fact there don't seem to be any recent messages
there at all... is it still live? )
That list is still alive.
BBEdit's #! Menu has a rather useful Check Syntax option.
Unfortunately this is not active for PHP.
PHP however has its own linter which can be accessed via a command
line option. I'm just in the process of wrapping this in an
AppleScript.
What I'd like to do is to attach this script to #! > Check Syntax.
What I'm not sure about is how to convince BBEdit that it wants to
make this menu option active for PHP scripts. I'm hoping that
somebody will be able to steer me in the right direction?
BBEdit will enable or disable that menu item based on whether it knows
how to syntax check the language of the front document.
The best solution is to probably leave the script in the Scripts menu
and assign it a different keyboard shortcut.
Jim
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>