Article View: comp.sys.mac.programmer.tools
Article #9Re: tool to reformat text?
From: Paul Russell
Date: Mon, 15 Sep 2003 03:40
Date: Mon, 15 Sep 2003 03:40
18 lines
2124 bytes
2124 bytes
Burt Johnson wrote: > I have just inherited a project that I will now be responsible for. The > prior programmer used spaces to indent, while I strongly prefer tabs. > > Is there any program out there to go through and properly reformat the > existing code? > > Note that I don't want to just use a simple seach-and-replace since that > would also nail spaces embedded in quoted strings, etc. Also, by the > nature of using spaces, sometimes he didn't have the exact correct > number, so things could get a bit messy there too. > There's an open source tool called "astyle" whcih should do what you want. <http://www.bigfoot.com/~davidsont/astyle> Paul
Technical Details
Message-ID:
<pwa9b.21628$dk4.673451@typhoon.sonic.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!priapus.visi.com!news-out.visi.com!petbe.visi.com!news-out1.nntp.be!propagator2-sterling!In.nntp.be!feed.news.sonic.net!typhoon.sonic.net!not-for-mailReferences:
<1g1ahp3.1s4wpdx131r9j6N%burt@mindstorm-inc.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f98ee,a5da9314df6a1e46 X-Google-Attributes: gidf98ee,public X-Google-Thread: fd047,a5da9314df6a1e46 X-Google-Attributes: gidfd047,public X-Google-Thread: f635e,a5da9314df6a1e46 X-Google-Attributes: gidf635e,public X-Google-ArrivalTime: 2003-09-14 20:45:04 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!priapus.visi.com!news-out.visi.com!petbe.visi.com!news-out1.nntp.be!propagator2-sterling!In.nntp.be!feed.news.sonic.net!typhoon.sonic.net!not-for-mail From: Paul Russell <prussell@sonic.net> Reply-To: prussell@sonic.net User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4) Gecko/20030612 X-Accept-Language: en,pdf MIME-Version: 1.0 Newsgroups: comp.sys.mac.programmer.tools,comp.sys.mac.programmer.codewarrior,codewarrior.windows Subject: Re: tool to reformat text? References: <1g1ahp3.1s4wpdx131r9j6N%burt@mindstorm-inc.com> In-Reply-To: <1g1ahp3.1s4wpdx131r9j6N%burt@mindstorm-inc.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 19 Message-ID: <pwa9b.21628$dk4.673451@typhoon.sonic.net> Date: Mon, 15 Sep 2003 03:40:05 GMT NNTP-Posting-Host: 64.142.31.55 X-Complaints-To: abuse@sonic.net X-Trace: typhoon.sonic.net 1063597205 64.142.31.55 (Sun, 14 Sep 2003 20:40:05 PDT) NNTP-Posting-Date: Sun, 14 Sep 2003 20:40:05 PDT