Hi there, thanks for a great project, i'm using the site all the time as reference for my php- script
Here's a little AppleScript you may want to add to the Quick Reference page ( http://www.php.net/tips.php ) for the Mac-OS community:
BBEdit users can put this little AppleScript into the Scripts-folder of BBEdit and look up functions on the php-site as they type.
--------------------------
tell application "BBEdit"
set my_function to selection of window 1 as string
if my_function = "" then
set my_function to text returned of ¬
(display dialog "PHP Function:" default answer "")
end if
if my_function is not "" then
set target_URL to "http://www.php.net/" & my_function
open location target_URL
end if
end tell
--------------------------
With small modifications it will also work on other text-editors if they can use AppleScripts.
The script uses the default web-browser to show the function-page on php.net.
Thanks for the tip, I have added it with your name, though a bit reworded. I have not used AppleScript so far, so I don't know, what the char after "returned of" means for AppleScript. I have assumed that it is not needed, and as it is not a standard ASCII char, I have removed it from the tip. Please check if the final tip I have added is all right. The tip will be online in a few minutes on php.net (other mirrors may need more time to update).
Thanks for the suggestion,
Goba