<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:12pt"><div><meta charset="utf-8"><pre style="color: black; font-family: Times; font-size: medium; white-space: pre-wrap; ">Hello,</pre><pre style="color: black; font-family: Times; font-size: medium; white-space: pre-wrap; ">Thanks for your reply. This works for stand alone typed variables but on snippets where I have let's say a "while loop" with </pre><pre style="color: black; font-family: Times; font-size: medium; white-space: pre-wrap; ">a certain condition as a place holder:</pre><pre style="color: black; white-space: pre-wrap; "><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">while       (condition)
...
end while  </font></pre><pre><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="white-space: pre-wrap;">after I type my shortcut and press the tab, the snippet completes and takes the caret into the (condition) variable where If I type the name that I want and press my shortcut for the macro to add the "$" symbol then TM adds it infront of "while" so</span></font></pre><pre style="color: black; white-space: pre-wrap; "><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">it becomes:</font></pre><pre><span class="Apple-style-span" style="white-space: pre-wrap; "><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">$while  (condition)
        ...
end while</font></span></pre><pre><span class="Apple-style-span" style="white-space: pre-wrap;"><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">instead of:</font></span></pre><pre><span class="Apple-style-span" style="white-space: pre-wrap;"><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">while     ($condition)
        ...
end while</font></span></pre><pre><span class="Apple-style-span" style="white-space: pre-wrap;"><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></span></pre><pre><span class="Apple-style-span" style="white-space: pre-wrap;"><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">Any way around this?</font></span></pre><pre><span class="Apple-style-span" style="white-space: pre-wrap;"><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></span></pre><pre><span class="Apple-style-span" style="white-space: pre-wrap;"><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">Thanks</font></span></pre><pre><span class="Apple-style-span" style="white-space: pre-wrap;"><br></span></pre><pre style="color: black; font-family: Times; font-size: medium; white-space: pre-wrap; "><br></pre><pre style="color: black; font-family: Times;
 font-size: medium; white-space: pre-wrap; ">You can do this by recording a macro.  Type a word, then under Bundles on
the toolbar, go to Macros and click Start Recording.  Press the key
combination for 'move to beginning of word' (which is option+left arrow for
me), and then press '$'.  Then click 'Stop Recording'.  With any luck you
should have a macro that does 'move to beginning of word' and then 'insert
$'.  You can do that for all the characters you need, and obviously much
more complicated scenarios.

Brandon


><i> Hello,
</i>><i> I was wondering if that is possible. The symbol for variable in the
</i>><i> language I
</i>><i> am working on is the "$" sign.
</i>><i> Would it be possible to add this after the word has been typed and have it
</i>><i> added
</i>><i> in the beginning of the word? The same would go for the array symbol %,
</i>><i> strings array "!" etc..
</i>><i> So I would type "counter" and then decide if I want this to be a variable
</i>><i> or an
</i>><i> array so depending if I type $ or % after that word it would end up being
</i>><i> $counter or %counter
</i>><i> Thanks in advance for any input.
</i>><i> Best,
</i>><i> John</i></pre></div><div style="color: black; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; position: fixed; "></div>


</div></body></html>