From owner-freebsd-questions@FreeBSD.ORG Fri Apr 20 09:27: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 5DD1816A409 for ; Fri, 20 Apr 2007 09:27:30 +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 BCA2213C45E for ; Fri, 20 Apr 2007 09:27:29 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by ug-out-1314.google.com with SMTP id 71so749726ugh for ; Fri, 20 Apr 2007 02:27:28 -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=TGhvBerXJ2/3VAqihKaYfwMUMnEmMXDFLOH4RDgogj5Ropdf89cwk3m3hmwe2//9be+Z2lzO18ejs5mdxWIHW/eVdNv4ENKzqNYvVIZwV48lNxhJ6C40vMnQe+XbHQzWT470FNzfAnt0/8t1oeUBiwZbC28r+x81t61V3faQgDg= 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=DdTEfFcGJWfbOsvTdfol7v/shNYEMHnKVi2tvFr6B2DnKJ+/aNMwH1ET73ylkQ7iCnIY7vftzpYhjdo8I4Jig7YrfQzrrKL8y2Ix0ZdY3reii/MmFgvvVIqPSjaSomV1dQZT+PxgTyZ0HOyv3l8+Exa1teg+ily3cte2v1jjVQE= Received: by 10.67.100.10 with SMTP id c10mr2702335ugm.1177061248635; Fri, 20 Apr 2007 02:27:28 -0700 (PDT) Received: from ?127.0.0.1? ( [213.206.147.185]) by mx.google.com with ESMTP id 13sm4123417ugb.2007.04.20.02.27.27; Fri, 20 Apr 2007 02:27:28 -0700 (PDT) From: Tom Evans To: Andrew Falanga In-Reply-To: <1177060993.1279.6.camel@zoot.mintel.co.uk> References: <340a29540704191410l1d45f0c4w9af97f8ec324f405@mail.gmail.com> <1177060993.1279.6.camel@zoot.mintel.co.uk> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-6DGKBSEe+m0A6iS3Od1b" Date: Fri, 20 Apr 2007 10:27:26 +0100 Message-Id: <1177061246.1279.8.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:27:30 -0000 --=-6DGKBSEe+m0A6iS3Od1b Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2007-04-20 at 10:23 +0100, Tom Evans wrote: > 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= .org" >=20 > Assuming you can print with lpr(1): >=20 > vim "+syntax enable" "+number" "+hardcopy" file.cc >=20 > I'd put "syntax enable" in your ~/.vimrc , and the other attrs can be > shortened to: >=20 > vim "+nu" "+ha" file.cc My bad, I hadn't actually tried that! The correct version should be: vim "+syntax enable" "+set printoptions=3Dnumber:y" "+hardcopy" file.cc vim "+syntax enable" "+set popt=3Dnumber:y" "+ha" file.cc --=-6DGKBSEe+m0A6iS3Od1b 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) iD8DBQBGKId6lcRvFfyds/cRAtFRAKCAHySccN3xfOsFQ7zxwR7faFSLlACgk301 7o6C2RCRSdb+fkCdMofBaa8= =Q4pj -----END PGP SIGNATURE----- --=-6DGKBSEe+m0A6iS3Od1b--