Article View: comp.sys.mac.programmer.tools
Article #10Re: tool to reformat text?
From: jean-yves herv�
Date: Mon, 15 Sep 2003 18:30
Date: Mon, 15 Sep 2003 18:30
32 lines
2436 bytes
2436 bytes
In article <1g1ahp3.1s4wpdx131r9j6N%burt@mindstorm-inc.com>,
burt@mindstorm-inc.com (Burt Johnson) wrote:
> 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 is Artistic Style for Mac
http://www.bio.ic.ac.uk/evolve/software/astyle/index.html
not sure if there is a version for OS X (I am still using Mac OS).
jyh.
--
=====================================================================
jean-yves herve' /\
Department of Computer Science \/ e-mail --> jyh@cs.uri.edu
and Statistics /\
University of Rhode Island \/ Tel. --> (401) 874-4400
Kingston, RI 02881-0816 /\ Fax. --> (401) 874-4617
USA \/
=====================================================================
Technical Details
Message-ID:
<jyh-509049.14305115092003@clamcake.uri.edu>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.cse.psu.edu!elk.ncren.net!oshean-news.uri.edu!newsserver.uri.edu!jyhReferences:
<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: f635e,a5da9314df6a1e46 X-Google-Attributes: gidf635e,public X-Google-Thread: fd047,a5da9314df6a1e46 X-Google-Attributes: gidfd047,public X-Google-ArrivalTime: 2003-09-15 11:45:01 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.cse.psu.edu!elk.ncren.net!oshean-news.uri.edu!newsserver.uri.edu!jyh From: jean-yves herv� <jyh@cs.uri.edu> Newsgroups: comp.sys.mac.programmer.tools,comp.sys.mac.programmer.codewarrior,codewarrior.windows Subject: Re: tool to reformat text? Date: Mon, 15 Sep 2003 14:30:51 -0400 Organization: Dept. of CS, University of Rhode Island Lines: 32 Message-ID: <jyh-509049.14305115092003@clamcake.uri.edu> References: <1g1ahp3.1s4wpdx131r9j6N%burt@mindstorm-inc.com> NNTP-Posting-Host: 131.128.81.11 X-Trace: clamcake.uri.edu 1063650652 10250 131.128.81.11 (15 Sep 2003 18:30:52 GMT) X-Complaints-To: news@oshean-news.uri.edu NNTP-Posting-Date: Mon, 15 Sep 2003 18:30:52 +0000 (UTC) User-Agent: MT-NewsWatcher/3.1 (PPC)