A little tip for those of us using textpad to develop in PHP. How often do you find yourself having to go back to PHP.net to check up on a function – is it ($needle, $haystack) or ($haystack, $needle)? I can never remember! With this tool I just need to highlight the function in textpad, press Ctrl-1 and up pops php.net in a new tab, opened on that function’s manual entry. Neat huh?
1) Go to Configure->Preferences->Tools->Add->DOS Command:
2) Then enter the following in the popup dialog:
3) Then in the tool’s preferences, untick “Capture Output” and tick “Close DOS window on exit”:
Now any time you want to lookup a function in your code, simply highlight or double-click it and press Ctrl-1 to be taken to that function’s manual page on PHP.net, in a new tab in your default web browser.
While we’re on the topic of textpad tweaks, did you know you can jump to the matching brace by pressing Ctrl-M? Very handy for spaghetti code. Share your textpad PHP IDE tips below! And if you haven’t already, why not take this opportunity to, you know, actually buy textpad after all this time? <grin>