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

Home » Public Forums » archive » Re: outputting formated text version of 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: outputting formated text version of code [message #13684 is a reply to message #13678] Mon, 07 December 1998 00:00 Go to previous messageGo to previous message
mallors is currently offline  mallors
Messages: 76
Registered: November 1997
Member
In article <366B381B.7885B915@uleth.ca>,
Brad Gom <gombg@uleth.ca> writes:
> I want to include some of my code in my thesis, so I need to be able to
> import the code into a document.
> Does anyone know of a routine that will convert a .pro file to a
> document that preserves the syntax highlighting seen in the IDL window?
> Copying the code from within IDL 5.0 doesn't allow me to paste it into a
> word processor with its formatting intact.
>
> I figure it would be possible to write a small program that would
> convert a source file into a rich-text-format document by searching for
> various keywords and inserting the appropriate format statements, but I
> don't really have the time to look into it.
>
> Anyone have any suggestions?

If you are using UNIX, try the program a2ps. I wrote a style
file for that program for IDL. a2ps doesn't do color (I don't
think), but it will highlight key words, comments, etc. and
make a Postscript file that you can include into a document.
See http://www-inf.enst.fr/~demaille/a2ps/


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
Robert S. Mallozzi 256-544-0887
Mail Code ES 84
Work: http://www.batse.msfc.nasa.gov/ Marshall Space Flight Center
Play: http://cspar.uah.edu/~mallozzir/ Huntsville, AL 35812
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Are .SAV files platform independent?
Next Topic: Re: New dollar coin designed using IDL (please vote)

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

Current Time: Fri Oct 10 10:33:50 PDT 2025

Total time taken to generate the page: 0.40209 seconds