help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Aligning colums


From: Roy Smith
Subject: Aligning colums
Date: 20 Jan 2005 10:46:49 -0500

I've got a bunch of text that looks like this:

         foo ("arg1", "xxxxxxxxxxxxxx", 1, "xxxx", 2)
         foo ("arg1", "xxxxxxxxx", 1, "xxx", 2)
         foo ("arg1", "xxxxxxxxxxx", 1, "xxxxxxxx", 2)
         foo ("arg1", "xxxxxxxx", 1, "xxxxxx", 2)
         foo ("arg1", "xxxxxxxxxx", 1, "xxxxxxx", 2)

I want to get the arguments lined up so it looks like:

         foo ("arg1", "xxxxxxxxxxxxxx",  1, "xxxx",       2)
         foo ("arg1", "xxxxxxxxx",       1, "xxx",        2)
         foo ("arg1", "xxxxxxxxxxx",     1, "xxxxxxxx",   2)
         foo ("arg1", "xxxxxxxx",        1, "xxxxxx",     2)
         foo ("arg1", "xxxxxxxxxx",      1, "xxxxxxx",    2)

What's the best way to do that?  I suspect M-X align is what I want, I
can't make heads or tails out of the on-line help.

Note, the above text looks like C code, but I seem to run into things
like this is various languages, not just C, so I'm looking for a
general solution.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]