NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Pipe character in file templates


Joined: 08 Mar 2006
Posts: 63
Reply with quote
In file templates and code templates the first pipe character (|) found will be removed and the cursor placed at that location. Would it be possible to get around that behavior and use some other marker for the cursor position? I have file templates with lots of literal pipe characters in (to make a comment box) and the default behavior is a bit annoying.
View user's profileFind all posts by svenaxSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
hmmm.
Technically everything is possible but...
may I ask you how you are using these pipes in your code?
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 08 Mar 2006
Posts: 63
Reply with quote
As I said, in a comment box - something like:

Code:
// +---------+
// | Comment |
// +---------+


Though it is much bigger and contains a standard file header for our company.

But I could also think of inserting code snippets that contains pipe characters.

Code:
if ($a <= $b || $c >= $d) {
  | // <- put cursor here
}
View user's profileFind all posts by svenaxSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
would this combinaction \| satisfy you if we expand it to | and do not use it as a marked location to put cursor to while without slash it will work the same?
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 08 Mar 2006
Posts: 63
Reply with quote
Yes, that would work.
View user's profileFind all posts by svenaxSend private message
Pipe character in file 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