Date: Thu, 24 Aug 2006 16:18:59 +0300 From: "Matti J. Karki" <mjk@iki.fi> To: "=?ISO-8859-1?Q?Kyrre_Nyg=E5rd?=" <kyrreny@broadpark.no> Cc: questions@freebsd.org Subject: Re: Code beautifiers, anyone? Message-ID: <1b15366e0608240618j62d41ad3j537f095b2e566ed5@mail.gmail.com> In-Reply-To: <7.0.1.0.2.20060824145822.0194fc10@broadpark.no> References: <7.0.1.0.2.20060824145822.0194fc10@broadpark.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On 8/24/06, Kyrre Nyg=E5rd <kyrreny@broadpark.no> wrote: > > 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. > . . . > > I wish to be in full control of my code beautifiers. That is, I wish > to have them as simple and meaningful as possible. Give me an easy > Bash over a complex Ruby any day. > Well, my suggestion to anyone asking this question is that the best thing IMHO is to learn some scripting language with good regular expression support. For example Tcl, Python or Perl. I have to deal with all sorts of source code and I have noticed that - for me - the easiest path is to first study the source code and then create a simple script to beautify the code. It takes less time than trying to find some suitable tool, which may not even product exactly the style I want. -Matti
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1b15366e0608240618j62d41ad3j537f095b2e566ed5>