HOWTO: Use a php script for my editing |
Site Admin
|
HOWTO: Use a php script for my editing
Well, you'd follow the instructions below: 1. Create a customization entry (Tools > Settings > Tools > Integration > Add Menu) 2. Set Execute With -> Shell 3. Command line should be @PHP@ -q "full_path_to_my_script\myscript.php" if your script is php5, please use @PHP5@ instead of @PHP@ or have .php associated with php5. 4. Other settings: -check "Show this command in File Bar popup -check "Work with editor" -check "Take input from..." -check "Selected text" -check "Return results to the editor" The other settings can be left by default or you can set them according to your needs. 5. your script should read input stream for processing and echo results back, for example:
Please note, that input streeam will be ended with "\n" (line feed), regardless you selected a single char or whole the line. Very useful scripts integrated this way can be found there: http://forum.nusphere.com/some-useful-scripts-for-phped-t1989.html http://forum.nusphere.com/script-to-automate-writing-of-set-get-functions-oop-phpdoc-t3192.html |
||||||||||||||||
|
HOWTO: Use a php script for my editing |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by