From 01146452dd5da5f1190b314e33bab626a166db76 Mon Sep 17 00:00:00 2001 From: JZJisawesome <40674968+JZJisawesome@users.noreply.github.com> Date: Fri, 12 Oct 2018 14:11:09 -0400 Subject: [PATCH] enscript: add page (#2432) --- pages/common/enscript.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/enscript.md diff --git a/pages/common/enscript.md b/pages/common/enscript.md new file mode 100644 index 0000000000..47625a0eee --- /dev/null +++ b/pages/common/enscript.md @@ -0,0 +1,23 @@ +# enscript + +> A tool to convert text files to PostScript, HTML, RTF, ANSI, and overstrikes. + +- Generate PostScript from a file and output to another: + +`enscript {{path/to/input_file}} --output={{path/to/output_file}}` + +- Generate a certain output language (eg. _html_) from a file and output to another: + +`enscript {{path/to/input_file}} --language={{language}} --output={{path/to/output_file}}` + +- Generate PostScript from a file and output to another with 1 to 9 column per page in landscape: + +`enscript {{path/to/input_file}} --columns={{num}} --landscape --output={{path/to/output_file}}` + +- Display avaliable syntax highlighting: + +`enscript --help-highlight` + +- Genereate PostScript from a file and output to another with syntax highlighting and color for a specified language: + +`enscript {{path/to/input_file}} --color=1 --highlight={{language}} --output={{path/to/output_file}}`