#7 Print in color

open
nobody
None
5
2001-09-25
2001-09-25
Anonymous
No

It would be great if it were possible to print a file
using the same highlight patterns that are used
during editing (where "print" is just another word
for "generating a PostScript file", of course ;-). It
would make the printed form of a source file much
more readable than plain black text.

Thanks!

Discussion

  • Logged In: NO

    Please, try this:

    enscript -2rG -C -E -M A4 file.c

    It might solve most of your wishes.

     
  • Joachim Lous
    Joachim Lous
    2002-10-02

    Logged In: YES
    user_id=82866

    Highligt inspection macros are now in CVS, so it's now
    possible to write a macro for say, exporting HTML with
    corerct formatting. If done well, I think this is such a good
    demo of the new functionality (and such a much-requested
    feature) that it should be part of the standard macro set in the
    next release. If someone writes it, of course.

     
  • Thorsten Haude
    Thorsten Haude
    2003-02-20

    Logged In: YES
    user_id=119143

    Here is a macro which converts a syntax-highlighted buffer
    to HTML, colors and all:
    http://www.vranx.de/nedit/sh2html.nm.html