NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Running a script on a selection of code
Veteran

Joined: 26 Dec 2006
Posts: 253
Location: Phoenix, AZ
Reply with quote
I wanted to encode entities in an HTML source file that I have embedded in a page as a sample, and not finding the needed functionality in PhpED, I figured this was the perfect time to try my hand at making an integration script, something I've been wanting to learn more about for a while. All I need to do is grab the selection and run it through a PHP script that calls htmlspecialentities() on it and then returns the new text to replace the old.

I quickly ran into a problem, however. I appears that the integration functionality only supports working on entire files, not selections. Is this true, or did I miss something? And if the integration functionality can't do this, is there any other way to accomplish this sort of thing?
View user's profileFind all posts by bobwilliamsSend private messageVisit poster's website


Joined: 14 Jun 2007
Posts: 67
Reply with quote
In the options for the integrated script, there's a "Selected text" checkbox near the bottom.
View user's profileFind all posts by CjungeSend private message
Running a script on a selection of code
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic