Subject: Re: Code beautifiers, anyone?
To: None <current-users@NetBSD.org>
From: David Young <dyoung@pobox.com>
List: current-users
Date: 08/24/2006 18:19:19
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.
Dave
--
David Young OJC Technologies
dyoung@ojctech.com Urbana, IL * (217) 278-3933