![]() |
| Converting a line to a PHP string? |
|
I did this for 4.6.4615
|
||||||||||||||
|
_________________ developer@ clexus |
|||||||||||||||
|
Hi danialt
Looks interesting but how would I use it/implement it in the IDE? Thanks Martin |
||||||||||||
|
|
|||||||||||||
|
http://forum.nusphere.com/some-useful-scripts-for-phped-t1989.html
command : @php5@ -q "c:\returnEscaped.php" you can even assign a shortcut to it |
||||||||||||
|
_________________ developer@ clexus |
|||||||||||||
|
Ok, I tried that, but doesn't quite work.
I created the script, saved it as ReturnEscaped.php, then went to Tools -> Settings -> Integration, added a new menu, set "Execute with" to Shell, and "Command line:" to @php5@ -q "c:\wamp\www\ReturnEscaped.php" In the options I only checked-on the "Show this command in Tools menu" Then, when I highlighted some text in a file, and hit Tools -> Scripts -> "Convert to PHP string" I get the following dialog popup: "Windows cannot find 'C:\program' make sure you typed the name correctly, and then try again. " Is this to do with Shell? Why can it not seem to shell out successfully? Is there a path I'm supposed to set somewhere? Thanks M |
||||||||||||
|
|
|||||||||||||
|
|||||||||||||
|
_________________ developer@ clexus |
|||||||||||||
|
How about extending the Integration with some sort of "easy Plugin" architecture? I mean the possibility to use PHP scripts for certain actions is really a superb feature, but I think that there are not too many developers using this really cool feature out there. I guess there is much more potential in this easy architecture. For example: How about creating a simple "Plugin" Format which basically is a PHP script but has a detailed header (e.g. as PHP Comment) which includes all settings that are necessary to plug it into phpEd (essentially all settings in the dialog above) - or a special INI format which includes these settings. With this format adding such a script is just like "selecting the desired file" and the rest can be done automatically. Having such a simple format you could easily start a small "Extension Exchange" were all PHPEd users could start to share their "helper Scripts" and I am sure that many developers will contribute their extensions here.
|
||||||||||||
|
|
|||||||||||||
|
I agree. You can have probably an XML file attached to the source code of the plugin (php code) which tells what to be done. e.g. Joomla! extenstion installer :
|
||||||||||||||||
|
_________________ developer@ clexus |
|||||||||||||||||
| Almost there ... |
|
I'm not sure what's happened, but when I highlight a <table> tag and click on the new script it produces the following:
<?php echo "<\0t\0a\0b\0l\0e\0 \0c\0e\0l\0l\0p\0a\0d\0d\0i\0n\0g\0=\0\"\00\0\"\0 \0c\0e\0l";?> It's close, but not exactly what I was looking for Any clues? |
||||||||||||
|
|
|||||||||||||
|
Site Admin
|
are you running PhpED 4.0?
|
||||||||||||
|
|
|||||||||||||
|
yes, but 4.5, not 4.6, I haven't got round to upgrading yet. Is that a problem?
|
||||||||||||
|
|
|||||||||||||
|
Site Admin
|
probably yes, at least it explains why it works fine in 4.6 while you're getting extra zeros.
|
||||||||||||
|
|
|||||||||||||
| Converting a line to a PHP string? |
|
||
|
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


RSS2 Feed
