<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Marc Feldesman wrote:
<blockquote cite="mid:408574.30541.qm@web37107.mail.mud.yahoo.com"
type="cite">
<pre wrap="">As anyone who has ever done programming knows, it doesn't take long for the best laid plans to mess up elegant formatting. I've been unable to find a command that reformats messy C code back to a standard GNU format (or any other for that matter). Have I missed something, or does this command not exist for programming languages?
</pre>
</blockquote>
<br>
There's /usr/bin/indent, which is either part of the standard MacOS
install or part of the developer package. For the standard GNU format
you're probably better off with the GNU variant, which can be obtained
through <a href="http://www.macports.org/">MacPorts</a>. It installs to
/opt/local/bin/gnuindent. In general, GNU indent has many more options
than the standard version, including quick preset options for the GNU,
K&R, and Berkeley styles.<br>
<br>
<div class="moz-signature">-- <br>
<address
style="font-family: sans-serif; font-style: italic; font-size: smaller;">
Steve King<br>
Sr. Software Engineer<br>
Arbor Networks<br>
+1 734 821 1461<br>
<a href="http://www.arbornetworks.com/">www.arbornetworks.com</a>
</address>
</div>
</body>
</html>