From owner-freebsd-questions@FreeBSD.ORG Fri Apr 20 04:29:30 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7854116A400 for ; Fri, 20 Apr 2007 04:29:30 +0000 (UTC) (envelope-from dkelly@hiwaay.net) Received: from smtp.knology.net (smtp.knology.net [24.214.63.101]) by mx1.freebsd.org (Postfix) with ESMTP id 0AC9613C487 for ; Fri, 20 Apr 2007 04:29:29 +0000 (UTC) (envelope-from dkelly@hiwaay.net) Received: (qmail 31744 invoked by uid 0); 20 Apr 2007 04:02:47 -0000 Received: from unknown (HELO ?10.0.0.187?) (216.186.148.249) by smtp6.knology.net with SMTP; 20 Apr 2007 04:02:47 -0000 In-Reply-To: <340a29540704191410l1d45f0c4w9af97f8ec324f405@mail.gmail.com> References: <340a29540704191410l1d45f0c4w9af97f8ec324f405@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <250EA08C-8137-43E1-9007-2626FE5451F6@hiwaay.net> Content-Transfer-Encoding: 7bit From: David Kelly Date: Thu, 19 Apr 2007 23:03:00 -0500 To: "Andrew Falanga" X-Mailer: Apple Mail (2.752.3) Cc: freebsd-questions Subject: Re: Code beautification and/or printing utilities that are not part of an editor 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, 20 Apr 2007 04:29:30 -0000 On Apr 19, 2007, at 4:10 PM, Andrew Falanga wrote: > Another question for everyone. Are there any programs, hopefully > available in the ports, that one can use to print source code files to > a printer (or create as a postscript file)? > > I'd like something that I can feed a C++ program, have it parse > through the code, print line numbers to the left of the page and > (optionally) color code the syntax. Does anything like this exist? a2ps was once a nice and simple ascii to PS converter then it bloated into a source code pretty-printer. Has been at least 10 years since I used it. GNU indent is a very useful code reformatter. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.