TextWrangler + Find In Reference + PHP

If you use TextWrangler to edit PHP files, you may find the following shell command useful (pointer from here):

defaults write com.barebones.textwrangler Services:ADCReferenceSearchTemplate “http://www.php.net/search.php?show=quickref&pattern=%@”

This will set the TextWrangler “Find in Reference” contextual menu item to look up the selected text on the PHP website (rather than on the Apple Developer Connection site, which is the default).

Comments

Isaac Grant's picture
Isaac Grant on September 6, 2005 - 15:46

This works for BBEdit too, just replace the “com.barebones.textwrangler” with “com.barebones.bbedit” — just so people know.

Steve Cooley's picture
Steve Cooley on October 11, 2005 - 21:32

Awesome, thank you!

Add new comment