SlickEdit Community

SlickEdit Product Discussion => SlickEditĀ® => Slick-CĀ® Macro Programming => Topic started by: lhasadad on June 14, 2009, 05:08:42 PM

Title: Looking for align on character macro
Post by: lhasadad on June 14, 2009, 05:08:42 PM
I seem to remember there once being a macro that allowed me to align text in a selection on a given character in a column.

So if I had

abcdefg
akdljiee
adfadf

and I had it allgn on the character d at the 10th column i would get:

abc       defg
ak         dljiee
a           dfadf

anyone go something like that?
Title: Re: Looking for align on character macro
Post by: LBCEi on June 15, 2009, 04:31:14 PM
There is a user-contributed macro for aligning blocks of assignment statements so that all of the equals signs line up.  See this post:  http://community.slickedit.com/index.php?topic=1930.0 (http://community.slickedit.com/index.php?topic=1930.0).

This could probably be adapted pretty easily for what you want.

Regards
Les
Title: Re: Looking for align on character macro
Post by: lhasadad on June 17, 2009, 12:15:33 AM
Thanks for the heads up on the macro.  if I can get it updated to do what I want will contribute back...

There is a user-contributed macro for aligning blocks of assignment statements so that all of the equals signs line up.  See this post:  http://community.slickedit.com/index.php?topic=1930.0 (http://community.slickedit.com/index.php?topic=1930.0).

This could probably be adapted pretty easily for what you want.

Regards
Les