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
This works for BBEdit too, just replace the “com.barebones.textwrangler” with “com.barebones.bbedit” - just so people know.
Steve Cooley's picture
Awesome, thank you!

Post new comment

You can comment anonymously if you must, but I would prefer it if you used your real name.
The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
Optional. If you enter the address of a website here, your name will be publicly linked to the site.
  • Adds typographic refinements.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.