Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Repeat snippet when $selected$ on multiple lines
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jadriano
Starting Member

1 Posts

Posted - Mar 17 2010 :  10:12:45 AM  Show Profile  Reply with Quote
Given the follwing macro VA Snippet

void Enter$selected$();
void Update$selected$();
void Exit$selected$();$end$


And the following selection

StateA
StateB


is it possible to generate, in one shot:

void EnteStateA();
void UpdateStateA();
void ExitStateA();
void EnterStateB();
void UpdateStateB();
void ExitStateB();


Regards,

*moved to correct section by feline*

Edited by - feline on Mar 18 2010 2:32:45 PM

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Mar 18 2010 :  2:40:59 PM  Show Profile  Reply with Quote
If you are selecting more than one line, then no. Since VA Snippets are designed to treat a multi-line selection as a single block of text.

You could edit the snippet to use $clipboard$ for one block and $selected$ for the second block, this will do what you want, so the snippet becomes:

void Enter$clipboard$();
void Update$clipboard$();
void Exit$clipboard$();
void Enter$selected$();
void Update$selected$();
void Exit$selected$();$end$

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000