I need to convert this sample text:
Code: Select all
VAR1$
LONGVAR2 $
ANOTHERVAR3 $
to this final text:
Code: Select all
* VAR1 ;
VAR1= ;
* LONGVAR2 ;
LONGVAR2= ;
* ANOTHERVAR3 ;
ANOTHERVAR3= ;
In pseudocode:
Remove trailing spaces from the marked text
For each line in the marked text, repeat it, then add a blank line
Return to the top of the marked text
Add "* " to the beginning of the line
Add " ;" to the end of the line
Advance to the next line
Add "= ;" to the end of the line
Advance to the next non-blank line
Rinse and repeat until end of marked text
The order of these steps can change as long as the end result is as stated.
Can such a macro be recorded? I can't figure out the keystrokes to make this happen, and without a macro editing functionality/language, I'm stuck.
Finally, is it possible to call a macro from another macro? It might be useful to modularize this into a series of smaller macros, then define a "wrapper" macro that calls them all.
I really like TextPad, am a big fan, have used it for years, and have recommended its use at my company. Please tell me I don't have to get UltraEdit for this functionality!!!
Thanks,
Scott