Hello, folks. These seems as good as another question to take a first plunge into your forum.
I would like to---so far without luck--to print out my Python scripts with syntax highlighting (using Mandrake Linux as my OS/host.) Using enscript has not gotten me anywhere; nor has a package I found on the *net called 'pretty-print', or some such similar to that. It had occured to me that the root of my lack of success is simply that file XYZ.py sits on my HD as a simple string of X's and O's, not as a pretty, colorful text repository. Only thru the magic of say, Vim, is the display converted to meaningful hues. Therefor, Vim somehow knows how to detect each of the discrete syntax types: comments, quotes, reserved words, etc., and to apply an appropriate color into its' display. It occured to me that it ought to be very simple to gain access to those syntax discrimnators, write a code script that creates a 'dye' for each syntax type, and pipe a print request thru such a file. Just to put my experience in perspective, I'm about halfway thru Michael Dawson's [wonderful] book "Python Programming for the Absolute Beginner". This concept is jumping way out of my present 'box', and I'm kind of excited that the whole thing occured to me, and anxious to move ahead and experiement with it. Just don't know where to get started. (Yes, I know that there are probably many applications blowing about 'out there', but that's not the point, is it?) -- >From Lowell's computer... _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor