comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Pretty-printing IDL code?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Pretty-printing IDL code? [message #20094 is a reply to message #20085] Wed, 17 May 2000 00:00 Go to previous messageGo to previous message
John-David T. Smith is currently offline  John-David T. Smith
Messages: 384
Registered: January 2000
Senior Member
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 |*|
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Need help to optimize for speed
Next Topic: Re: Loops in filenames?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 03:31:15 PDT 2025

Total time taken to generate the page: 0.01022 seconds