NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
some advanced shortcut / code completion?
chdolar
Guest

Reply with quote
After evaluating a couple of PHP-IDEs I now decided to move from HomeSite to PHPed.

There was one feature on Homesite which was very useful and I miss in PhpEd - or just wasn't able to find. Please correct me if I'm wrong.

It would be very handy if I could create a code template which acts in dependence of what is marked at the moment. So that I can mark some words, then launch the code template and the code template adds text before and after the marked text.

As an example:

I often have to copy'n'paste some text into scripts and then echo them as predefined text.

Code:
This is my text, which i pasted into my document.


Mark all the text, hit Ctrl-J, choose "Echo"

And here we are:

Code:
echo ("<p class="">This is my text, which i pasted into my document.</p>");


... the cursor placed between the parenthesis of the class attibute.

Another one:

Code:
"This is some example text with a link in it"


I will mark the words "a link", then hit Ctrl-j and choose my created "href"-code template.

And here I am:

Code:
"This is some example text with <a href="">a link</a> in it"


... with my cursor placed between the "".


then if I was able to assign a shortcut to a code template (let's say hitting Ctrl-Shift-a for the Anchor Tag or Ctrl-Shift-e for the echo Tag) I would be happy as well!


Regards
Christoph
[/code]
some advanced shortcut / code completion?
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