From owner-freebsd-questions@FreeBSD.ORG Fri Apr 20 09:23:17 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 5C78C16A404 for ; Fri, 20 Apr 2007 09:23:17 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id E2F5F13C45A for ; Fri, 20 Apr 2007 09:23:16 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by ug-out-1314.google.com with SMTP id 71so749232ugh for ; Fri, 20 Apr 2007 02:23:15 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=HRTwCvxMPPrUX6inJ/jw1zS3xdXCLqSXG3b18rDWI5G/5PCEe+kOfc3E0tz09lmc8vUOs7CTE3lM8In/DIYBy+4eUoHK5UtZZLjvupdVOpEw49jEDAF/snwJak3Iis1CziKMEjP6qyhyOQRSOz0rf5wfoAlWGZ3NboYghj4wvz4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=l7wr7ax1r6gMaVQAjftlD+gWKnsChGzDaaCpq66OCj38gh/7nkQGfn3cpPfeTb9MvHvpIkj3QhKEA8G7xYFT1qr2ekwGEHjQw5En9FIeT/+0Gh5rK4fyrd7ffDTigxJ6nbCbam5TYGiaJfF1D/ZpDOeaYQueaIJbZ1+m+tsDkIg= Received: by 10.66.224.19 with SMTP id w19mr1675861ugg.1177060995814; Fri, 20 Apr 2007 02:23:15 -0700 (PDT) Received: from ?127.0.0.1? ( [213.206.147.185]) by mx.google.com with ESMTP id z40sm4135885ugc.2007.04.20.02.23.14; Fri, 20 Apr 2007 02:23:15 -0700 (PDT) From: Tom Evans To: Andrew Falanga In-Reply-To: <340a29540704191410l1d45f0c4w9af97f8ec324f405@mail.gmail.com> References: <340a29540704191410l1d45f0c4w9af97f8ec324f405@mail.gmail.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-3BuuEhG4yGSlD3/eXU4j" Date: Fri, 20 Apr 2007 10:23:13 +0100 Message-Id: <1177060993.1279.6.camel@zoot.mintel.co.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.10.0 FreeBSD GNOME Team Port 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 09:23:17 -0000 --=-3BuuEhG4yGSlD3/eXU4j Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2007-04-19 at 15:10 -0600, 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)? >=20 > 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? >=20 > 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. >=20 > Andy > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" Assuming you can print with lpr(1): vim "+syntax enable" "+number" "+hardcopy" file.cc I'd put "syntax enable" in your ~/.vimrc , and the other attrs can be shortened to: vim "+nu" "+ha" file.cc --=-3BuuEhG4yGSlD3/eXU4j Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGKIZ3lcRvFfyds/cRAnZ3AJ0VJ9Rq7IW21mfsLxBEfJiJDuRQIgCfdGMY m6k/WC7nCoZ9gG/pHlcwHRc= =x0mK -----END PGP SIGNATURE----- --=-3BuuEhG4yGSlD3/eXU4j--