Premysl Hruby <[EMAIL PROTECTED]> wrote: > On (14/05/08 16:24), Kai Grossjohann wrote: > > To: dynamic window manager <[email protected]> > > From: Kai Grossjohann <[EMAIL PROTECTED]> > > Subject: Re: [dwm] more consistent codestyle patch > > User-Agent: Thunderbird 2.0.0.14 (X11/20080505) > > Reply-To: dynamic window manager <[email protected]> > > List-Id: dynamic window manager <dwm.suckless.org> > > > > Marc Andre Tanner wrote: > >> [...] That is, use tabs for indention and spaces for further alignment: > >> ------->XGrabButton(dpy, AnyButton, AnyModifier, c->win, False, > >> ------->............BUTTONMASK, GrabModeAsync, GrabModeSync, None, None); > >> > >> This way the user can set the tabwidth to whatever he likes and the code > >> will still look decent. > > > > *drool* > > > > Is there a tool that does this? > > > > Kai > > > > > > indent(1) and there are other programs that this do.
I can confirm (I tried it) that indent doesn't supports some options which would be necessary to imitate dwm style and therefore enable automatic style testing. So indent might be a useful tool if you use GNU style or KNF, but otherwise it's simply useless. Regards Matthias-Christian
