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

Home » Public Forums » archive » outputting formated text version of 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
outputting formated text version of code [message #13693] Sun, 06 December 1998 00:00 Go to next message
Brad Gom is currently offline  Brad Gom
Messages: 49
Registered: August 1997
Member
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?
Re: outputting formated text version of code [message #13826 is a reply to message #13693] Mon, 07 December 1998 00:00 Go to previous message
Sebastien DELECRAZ is currently offline  Sebastien DELECRAZ
Messages: 2
Registered: December 1998
Junior Member
Brad Gom wrote:
> 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?

Hi Brad,

What's your word processor?
I' ve got a macro for MSWORD95 (WIN) that does it in black & white.

In fact it does not preserve the IDL colored highlights but when you
open your IDL source code in MSWORD it will search again for reserved
words, keywords, built-in routine
names and comments. Then, these are set to BOLD or ITALIC.
You can edit this macro to add your own reserved words. I believe you
can also modify it in order to get some colors.

I use it when I need to turn off my computer and read quietly my code on
a real sheet of paper, with a real pen in the hand, looking for really
obscure
programming errors that make me stand hours in front of the same screen
- I'm sure I'm not the only one around there. ;-)

You can download the zipped file on my IDL reference page
(http://gala.univ-perp.fr/~delecraz/)

Hope this helps,
cheers,
SEb.

______________________________________________

Sebastien DELECRAZ - tel: 33/4.68.35.32.41
59, cours Lassus - F-66000 Perpignan
delecraz@univ-perp.fr
http://gala.univ-perp.fr/~delecraz/
______________________________________________
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Digital Chart of World (WorldMap)
Next Topic: How to kill a procedure?

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

Current Time: Sat Oct 11 11:54:04 PDT 2025

Total time taken to generate the page: 1.84143 seconds