www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/10/03:31:55

Sender: crough45 AT amc DOT de
Date: Thu, 10 Apr 1997 08:21:05 +0100
From: Chris Croughton <crough45 AT amc DOT de>
Mime-Version: 1.0
To: grbhat AT unigoa DOT ernet DOT in
Cc: djgpp AT delorie DOT com
Subject: Re: pretty printer?
Message-Id: <97Apr10.091827gmt+0100.21890@internet01.amc.de>

Gurunandan R. Bhat wrote:

>i could suggest a way via tex. you could download a program: lgrind.exe
>from any of the tex archives, that converts your c/c++/fortran/lisp/...
>code to a prettily formatted tex file *with syntax highlighting* and then
>use dvips to get a ps file. 

There's another similar method.  Load it into elvis (the 'vi' clone) 
with syntax highlighting and then print it (the :lpr command with the 
appropriate printer type set).  I suspect that emacs would do it
but I don't know emacs very well.

(Sorry, I'm one of the few people who likes vi, and I run emacs in
vi emulation mode.  To me elvis is vi plus a load of good stuff and is
therefore a Good Thing, emacs is Lisp and the work of Malign Forces...)

Chris

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019