[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Pretty-printing IDL code?
- Subject: Re: Pretty-printing IDL code?
- From: John-David Smith <jdsmith(at)astro.cornell.edu>
- Date: Wed, 17 May 2000 11:40:33 -0400
- Newsgroups: comp.lang.idl-pvwave
- Organization: Cornell University
- References: <8ftv7s$1eno$1@pukkie.phys.uu.nl> <392282D6.E5443B29@mpipsykl.mpg.de> <8fucp6$1ko6$1@pukkie.phys.uu.nl>
- Sender: verified_for_usenet(at)cornell.edu (jts11 on d5029.dialup.cornell.edu)
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:19650
Peter Suetterlin wrote:
>
> In article <392282D6.E5443B29@mpipsykl.mpg.de>,
> Benno Puetz <puetz@mpipsykl.mpg.de> writes:
>
> >> Does anyone here know a printing program that knows about the IDL
> >> syntax an can produce nice-looking printouts (e.g. grey comments, bold
> >> keywords etc.)?
>
> > EMACS + IDLWAVE mode
>
> Thanks, I'm using that already, BUT:
>
> Emacs just PostScript-Prints the (coloured) buffer, and that does not
> look very nice on a BW-printer....
You can change the faces emacs uses to fontify special sections of the code.
E.g. here I've changed the colors:
(set-face-foreground font-lock-comment-face "FireBrick")
(set-face-foreground font-lock-string-face "DarkOrchid")
(set-face-foreground font-lock-keyword-face "DarkGreen")
(set-face-foreground font-lock-function-name-face "Navy")
(set-face-foreground font-lock-variable-name-face "Magenta")
(set-face-foreground font-lock-reference-face
"DarkSlateGray")
Obviously, you'd prefer to use non-color options such as:
(make-face-bold font-lock-function-name-face)
but see make-face-bold-italic and all the other face editing commands
available.
JD
--
J.D. Smith |*| WORK: (607) 255-5842
Cornell University Dept. of Astronomy |*| (607) 255-6263
304 Space Sciences Bldg. |*| FAX: (607) 255-5875
Ithaca, NY 14853 |*|