Skip to Content

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

This works for BBEdit too, just replace the “com.barebones.textwrangler” with “com.barebones.bbedit” - just so people know.
Awesome, thank you!

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.