[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Aligning colums
From: |
Alan Wehmann |
Subject: |
Re: Aligning colums |
Date: |
Sat, 22 Jan 2005 22:05:24 -0600 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, usg-unix-v) |
Look for pretty-column.el. It will do what you want and is easy to
use. I think I got it from gnu.emacs.sources, so chances are you can
find it in the Google group collection of postings.
roy@panix.com (Roy Smith) writes:
> 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.
>
>
>
--
Alan Wehmann
wehmann_nospam@fnal.gov