PrintA2PS.pro

When called as a macro under the Windows IDLDE this will create a chroma-coded print
of the source code of the active IDLDE Edit window.

Apart from the IDL PrintA2PS.PRO routine, it uses the commmon A2PSutility to do the chroma coding, and a freeware utility called PrintFile to handle the printing.

PrintFile comes from : http://www.lerup.com/printfile but can be downloaded below.

A2PS-DOS.EXE is slightly over a megabyte is size and should be downloaded from the link at the bottom of this page.

Installation Instructions:


Install the attached freeware Printfile utility, and define your "path" environment to include the dir c:\program files\printfile.

Source the Self extracting Exe A2PS-DOS.EXE from the link below and install that into c:\a2ps\. This location should be added to your "path" environement also.

Save the PrintA2PS.pro file somewhere in your IDL path.

Edit a new Macro, and in the IDL Command box insert :-

PrintA2PS,"%F"

Add whatever other bits you like to the Macro fields, e.g. Hints text

Note that this utility prints from the *file* of the IDL source code,so any changes made in the edit window should be saved before calling the PrintA2PS macro.

Removing the "/q/-" from the PrintFile command inside PRINTA2PS.PRO will enable a popup dialog for printer selection & settings, otherwise the default printer is used.