NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Multiple pipe-characters in code templates


Joined: 25 Aug 2006
Posts: 18
Location: Netherlands
Reply with quote
I use code templates a lot, but I'd love to make use of more than one pip-characters (|) in my templates. For example, I'd love this code template to work:

Code:

<?php foreach(|): ?>
    |
<?php endforeach; ?>


So when I use the template, the first position of the cursor will be within the foreach() tag. After the tab-key is hit, the cursor will move to the next |-character, outside the php-code.

There are a lot more examples I could give, like:
Code:

while(| = mysql_fetch_assoc(|)) {
    |
}


This one uses three positions. If using the tab-character is a problem to use as a shortcut, maybe another shortcut is an option. Anyway, I'd love to see this in phped.
Shouldn't be to hard *cough* Wink
View user's profileFind all posts by SiemaSend private message
Multiple pipe-characters in code templates
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