On Tue, 2003-10-14 at 12:17, Syed Ali wrote:
> Oh, I apologize for the confusion.
> 
> I am asking about printing my perl code itself, and not about printing from within 
> Perl.
> For example, I am have 1000 line Perl program which I want to print on my HP printer.
> I can use enscript as in: 
> 
> $enscript -2 -dprinter myperlprogram.pl
> 
> Or I can use lpr or trueprint or mprint. But none of them are Perl aware, i.e., they 
> do not highlight subroutines, etc.
> Trueprint for example, "understands" C code, and can mark C functions while printing 
> so that they are very easy to read when printed on paper.
> I am hoping there is a utility which if used to print my perl program will make 
> reading the program easier.
> (I understand that writing easy to read Perl code is the first step. :-) )
> 

I use gvim -reverse to edit code and print it.  hitting the print button
calls a :hardcopy macro or command or what ever it is called in vim.  I
have been more than satisfied with it. If you have a color printer it
prints beautiful color code.  does a good job of grayscale coloring (is
that an oxymoron) on our hp5si.

Seems like I had to dig a little to get it to use something thatn the a4
default paper size though.  There is also a command to print the code in
formated html but I have never used it.

If you decide to go this route, let me know if you need any help and I
will dig around my config and see if I can.

Bret


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to