code snippets and the pipe character

  • Thread starter Thread starter Malcolm
  • Start date Start date
M

Malcolm

On Frontpage 2003 (beta), the code snippets feature
appears to be very useful. However, it uses the pipe
character | to control where the cursor appears and what
text is selected after you paste the code snippet.

The problem is that I'm trying to paste a snippet of ASP
code which contains several pipe characters in the actual
code. When the snippet gets pasted, this causes the wrong
text to be selected, and all the other pipe characters to
disappear. I need to then re-insert the |s manually which
sort of spoils the nice time-saving effect of the code
snippet in the first place.

Is there any obvious way around this??

Thanks.
 
In the snippet definition, put two pipes anywhere you
want one pipe in the output. The snippet text
if (a == b) |||| (c == d) {}else{}
adds
if (a == b) || (c == d) {}else{}
to the Web page.

Oh, but you wanted obvious. Hmmm. I'm not sure I can
offer much help in that case...

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*========----------
|\=========------------
|| Microsoft Office FrontPage 2003 Inside Out
|| Microsoft FrontPage Version 2002 Inside Out
|| Web Database Development Step by Step .NET Edition
|| Troubleshooting Microsoft FrontPage 2002
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/=========------------
*========----------
 
Thanks! :)
-----Original Message-----
In the snippet definition, put two pipes anywhere you
want one pipe in the output. The snippet text
if (a == b) |||| (c == d) {}else{}
adds
if (a == b) || (c == d) {}else{}
to the Web page.

Oh, but you wanted obvious. Hmmm. I'm not sure I can
offer much help in that case...

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*========----------
|\=========------------
|| Microsoft Office FrontPage 2003 Inside Out
|| Microsoft FrontPage Version 2002 Inside Out
|| Web Database Development Step by Step .NET Edition
|| Troubleshooting Microsoft FrontPage 2002
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/=========------------
*========----------


.
 
Back
Top