<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>sure, I want to insert</div><div><br></div><div>$00</div><div><br></div><div>where the second 0 should be inserted as text. The wouraround would be $0``0. Unfortunately, I was not able to create an easy where the text flashes on insertion, this only occurs when I use the following Perl script, which I use to move the caret forward on hitting return inside LaTeX inline equations (see the screenshot for the whole bundle editor entry).</div><div><br></div><div>#!/usr/bin/env perl</div><div>$_=<STDIN>;</div><div>$_=~/^(.{$ENV{'TM_LINE_INDEX'}}(?:\\?[a-zA-Z]+|.)?)(.*)$/;</div><div>$tmp1=$1;</div><div>$tmp2=$2;</div><div>$tmp1=~s/(\\|\$|`)/\\$1/g;</div><div>$tmp2=~s/(\\|\$|`)/\\$1/g;</div><div>if($tmp2=~/^[0-9]/){$tmp2 = "``".$tmp2}</div><div>print $tmp1."\$"."0".$tmp2;</div><div><br></div><div><i><img height="459" width="529" src="cid:5C3FF0F7-027E-41F2-BAEC-59EB5A29BE8A"></i></div><div><br></div><div><div>On 24.09.2008, at 10:12, Hans-Jörg Bibiko wrote:</div><blockquote type="cite"><div><br>On 24.09.2008, at 09:56, Christoph Wockel wrote:<br><br><blockquote type="cite">Hello everyone,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">if I insert a snippet with a tabstop, which is immediately followed by<br></blockquote><blockquote type="cite">a number (without any white spaces in between), the number gets<br></blockquote><blockquote type="cite">interpreted as belonging to the tabstop. Is there a way to aviod this?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I want to put the caret to an arbitrary location of a (script<br></blockquote><blockquote type="cite">generated) replaced text, which might be inside a number block. The<br></blockquote><blockquote type="cite">solution I have is to put a pair of backticks before the number, but<br></blockquote><blockquote type="cite">then the inserted text flashes on insertion, so it does not seem to be<br></blockquote><blockquote type="cite">the correct way to solve this.<br></blockquote><br>Could you please post an example?<br><br>--Hans<br><br>_______________________________________________<br>textmate mailing list<br><a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>http://lists.macromates.com/listinfo/textmate<br><br></div></blockquote></div><br></body></html>