Subject: Re: Code beautifiers, anyone?
To: None <current-users@NetBSD.org>
From: Chris Tribo <ctribo@dtcc.edu>
List: current-users
Date: 08/24/2006 22:32:30
On Aug 24, 2006, at 7:19 PM, David Young wrote:

> On Thu, Aug 24, 2006 at 02:59:20PM +0200, Kyrre Nyg?rd wrote:
>> Hello people,
>>
>> I'm looking for the best ways to create a line of code beautification
>> (reformatting) scripts -- one for C, one for Ruby, one for Bash and
>> one for web development languages like XHTML, XML, CSS, PHP and Ajax.
>> Whether as frontline warriors or household maids, they would ensure
>> proper indentation, linebreaks, spaces, tabs and so forth.
>
> You might look at Donald Knuth's famous paper, "Breaking Paragraphs  
> into
> Lines," for a flexible approach to laying out text based on "boxes"  
> and
> "glue".  ISTR he uses the layout of Pascal programs as one example.

Just pipe it through DadaDodo :) http://www.jwz.org/dadadodo/