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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Pretty-printing IDL code? [message #20085] Wed, 17 May 2000 00:00
robert.mallozzi is currently offline  robert.mallozzi
Messages: 11
Registered: November 1999
Junior Member
[Posted and mailed]

In article <8ftv7s$1eno$1@pukkie.phys.uu.nl>,
pit@hst33127.phys.uu.nl (Peter Suetterlin) writes:
> Hi group!
>
> 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.)?
>
> I'm working on Unix, PostScript output would be preferred...


I've written an IDL filter for the very nice a2ps
program

http://www-inf.enst.fr/~demaille/a2ps/

It comes with the a2ps distribution. I haven't updated
the filter for quite awhile, but it will cover most of
the IDL keywords and functions. You can create a
Postscript file with

a2ps -E idl -o file.ps file.pro

a2ps has many other options available as well.


Regards,

--bob



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
Robert S. Mallozzi 256-544-0887
Mail Code SD 50
http://gammaray.msfc.nasa.gov/ Marshall Space Flight Center
http://cspar.uah.edu/~mallozzir/ Huntsville, AL 35812
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
Re: Pretty-printing IDL code? [message #20094 is a reply to message #20085] Wed, 17 May 2000 00:00 Go 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 |*|
Re: Pretty-printing IDL code? [message #20096 is a reply to message #20085] Wed, 17 May 2000 00:00 Go to previous message
pit is currently offline  pit
Messages: 92
Registered: January 1996
Member
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....

Peter

PS: Please! don't post HTML!

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
Dr. Peter "Pit" Suetterlin http://www.astro.uu.nl/~suetter
Sterrenkundig Instituut Utrecht
Tel.: +31 (0)30 253 5225 P.Suetterlin@astro.uu.nl
____________________________________________________________ ______________
Re: Pretty-printing IDL code? [message #20100 is a reply to message #20085] Wed, 17 May 2000 00:00 Go to previous message
Benno Puetz is currently offline  Benno Puetz
Messages: 16
Registered: March 2000
Junior Member
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Peter Suetterlin wrote:
<blockquote TYPE=CITE>&nbsp; Hi group!
<p>Does anyone here know a printing program that knows about the IDL
<br>syntax an can produce nice-looking printouts (e.g. grey comments, bold
<br>keywords etc.)?
<br>&nbsp;</blockquote>
EMACS +&nbsp;<a href="http://www.strw.leidenuniv.nl/~dominik/Tools/idlwave/">IDLWAVE&nbsp;mode</a>
<br>&nbsp;
<pre>--&nbsp;
Benno Puetz
Kernspintomographie
Max-Planck-Institut f. Psychiatrie&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ; Tel.: +49-89-30622-413
Kraepelinstr. 10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fax : +49-89-30622-520
80804 Muenchen, Germany</pre>
&nbsp;</html>
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 18:41:49 PDT 2025

Total time taken to generate the page: 0.00796 seconds