From owner-freebsd-questions@FreeBSD.ORG Fri Aug 25 20:48:45 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D122416A4DF for ; Fri, 25 Aug 2006 20:48:45 +0000 (UTC) (envelope-from kyrreny@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AED743D49 for ; Fri, 25 Aug 2006 20:48:45 +0000 (GMT) (envelope-from kyrreny@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J4K00LM6N58G7C0@osl1smout1.broadpark.no> for questions@freebsd.org; Fri, 25 Aug 2006 22:48:44 +0200 (CEST) Received: from suria.broadpark.no ([80.203.212.30]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0J4K008CNN570G80@osl1sminn1.broadpark.no> for questions@freebsd.org; Fri, 25 Aug 2006 22:48:44 +0200 (CEST) Date: Fri, 25 Aug 2006 22:48:43 +0200 From: Kyrre =?iso-8859-1?Q?Nyg=E5rd?= In-reply-to: <1b15366e0608251127r7067e0c5wd5ba6dea29e1a011@mail.gmail.co m> To: "Matti J. Karki" Message-id: <7.0.1.0.2.20060825224701.02400f20@broadpark.no> MIME-version: 1.0 X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: <7.0.1.0.2.20060824145822.0194fc10@broadpark.no> <1b15366e0608240618j62d41ad3j537f095b2e566ed5@mail.gmail.com> <7.0.1.0.2.20060824192439.02386de8@broadpark.no> <5.1.0.14.2.20060825064053.01eebec0@209.152.117.178> <1b15366e0608250531q6187d598h78b02e14ab4b5ac2@mail.gmail.com> <7.0.1.0.2.20060825160431.023a1650@broadpark.no> <1b15366e0608251127r7067e0c5wd5ba6dea29e1a011@mail.gmail.com> Cc: questions@freebsd.org Subject: Re: Code beautifiers, anyone? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2006 20:48:45 -0000 At 20:27 25.08.2006, Matti J. Karki wrote: >A word of warning. Above, I mentioned that it's important to remember >that my example will remove _all_ tabulator characters from text. This >means that - for example - all lines with indentation inside the code >comments will be messed up (remember, usually a tab character equals 8 >spaces and I'm removing tabs all together). This leads me to my point: >my code does not handle multi-line comments at all. They may look >messed-up. A single curly bracket inside of a comment will throw the >indentation code out of sync. Also the code does not address line >breaks "\", so for example the macro definitions will not be indented >correctly. So, it will take some additional work to be able to run the >script without any side effects. Seems we gotta give this baby some sessions :) Have you seen this yet? http://www.arachnoid.com/ruby/rubyBeautifier.html All the best, Kyrre