From owner-freebsd-questions@FreeBSD.ORG Thu Apr 19 21:45:19 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 7DF8016A407 for ; Thu, 19 Apr 2007 21:45:19 +0000 (UTC) (envelope-from freebsd@philip.pjkh.com) Received: from bravo.pjkh.com (bravo.pjkh.com [72.36.232.219]) by mx1.freebsd.org (Postfix) with ESMTP id 5EBF213C4B0 for ; Thu, 19 Apr 2007 21:45:19 +0000 (UTC) (envelope-from freebsd@philip.pjkh.com) Received: from bravo.pjkh.com (bravo.pjkh.com [72.36.232.219]) by bravo.pjkh.com (Postfix) with ESMTP id 71DAF13C7C8; Thu, 19 Apr 2007 14:25:15 -0700 (PDT) Received: by bravo.pjkh.com (Postfix, from userid 1000) id 2BCCD13C7C6; Thu, 19 Apr 2007 14:25:15 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by bravo.pjkh.com (Postfix) with ESMTP id 286A513C404; Thu, 19 Apr 2007 14:25:15 -0700 (PDT) Date: Thu, 19 Apr 2007 14:25:15 -0700 (PDT) From: Philip Hallstrom To: Andrew Falanga In-Reply-To: <340a29540704191410l1d45f0c4w9af97f8ec324f405@mail.gmail.com> Message-ID: <20070419142430.U70266@bravo.pjkh.com> References: <340a29540704191410l1d45f0c4w9af97f8ec324f405@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: ClamAV using ClamSMTP 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: Thu, 19 Apr 2007 21:45:19 -0000 > 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? > > If it's something as simple as a string of chained command line aps, > hey, that's fine. Please someone point me in the correct direction. I seem to remember using enscript to do this at one point... not sure about the color coding, but the rest it will do I think... even cruch 2/4 pages onto one sheet which is nice sometimes. http://www.codento.com/people/mtr/genscript/ -philip