peter green wrote: > Tamas Rudnai wrote: > > On Mon, Aug 1, 2011 at 6:46 PM, peter green wrot= e: > > > I want a tool that can take c++ code (though I think the only c++ > > > specfic feature i'm using is c++ style comments) and break up lines > > > without destroying the code and without making any other unessacery > > > changes. > > > > > > Anyone got any suggestions for a tool that can do this? > > > > Do you mean formatting the C++ source to a nicer looking format? > > No > > > There is a tool called 'indent' for that which is standar on most linux > > and unix distributions including MacOS X. > > While indent does supposedly have a line length limiting feature it doesn= 't > seem possible to use it without using all the other "beautifying" feature= s > and it doesn't shorten comment lines. Are you going to make us guess exactly what you mean by "break up lines"? That gets really old really fast. Can you give us an example of the code you have and then what you'd like it to look like? Reformatting comments is such a personal style issue that most off-the-shel= f solutions aren't even going to try to address it. If you can show us what your style is, I'm sure one of us could come up with a Perl/sed/awk/whateve= r script to do it. -- Dave Tweed --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .