enscript

Brad De Vries devriesbj
Fri Nov 11 11:46:50 PST 2005


On 11/10/05, Jorge Almeida <jalmeida at math.ist.utl.pt> wrote:
> I just noticed that the "--pretty-print" option of enscript is nowhere
> to be found in the man page (or in info enscript). It still works, but
> it became a secret. I can't be sure whether it was in previous versions
> of the manual. Can it be  that it was forgotten when writing the man
> page, or is there some more arcane reason?
>
> --
> Jorge Almeida

Jorge, I found a paragraph on my Redhat 9.0 system.  It reads:
------
-E[lang], --pretty-print[=lang]
  Pretty-print source code by creating a special input filter
  with the states program.  Optional argument lang specifies the
  language to highlight, as a default states makes an educated
  guess.

  A description of supported highlighting languages and file for-
  mats can be printed with command:

  enscript --help-pretty-print

  The highlighting rules are defined in the
  `/usr/share/enscript/enscript.st' file which can be edited to
  create highlighting definitions for new languages.

  Note! You can't use your own input filters with this option.
------

HTH,
Brad.



More information about the Linux-users mailing list