Author Topic: Looking for align on character macro  (Read 5560 times)

lhasadad

  • Community Member
  • Posts: 15
  • Hero Points: 3
Looking for align on character macro
« 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?

LBCEi

  • Senior Community Member
  • Posts: 261
  • Hero Points: 21
Re: Looking for align on character macro
« Reply #1 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.

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

Regards
Les

lhasadad

  • Community Member
  • Posts: 15
  • Hero Points: 3
Re: Looking for align on character macro
« Reply #2 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.

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

Regards
Les