2018-10-12 21:11:09 +03:00
|
|
|
# enscript
|
|
|
|
|
|
|
|
> A tool to convert text files to PostScript, HTML, RTF, ANSI, and overstrikes.
|
2019-06-08 03:04:00 +03:00
|
|
|
> More information: <https://www.gnu.org/software/enscript>.
|
2018-10-12 21:11:09 +03:00
|
|
|
|
|
|
|
- Generate PostScript from a file and output to another:
|
|
|
|
|
|
|
|
`enscript {{path/to/input_file}} --output={{path/to/output_file}}`
|
|
|
|
|
2018-10-15 10:10:09 +03:00
|
|
|
- Generate a certain output language (eg. "html") from a file and output to another:
|
2018-10-12 21:11:09 +03:00
|
|
|
|
|
|
|
`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}}`
|
|
|
|
|
2018-10-15 10:10:09 +03:00
|
|
|
- Display available syntax highlighting:
|
2018-10-12 21:11:09 +03:00
|
|
|
|
|
|
|
`enscript --help-highlight`
|
|
|
|
|
2018-10-15 10:10:09 +03:00
|
|
|
- Generate PostScript from a file and output to another with syntax highlighting and color for a specified language:
|
2018-10-12 21:11:09 +03:00
|
|
|
|
|
|
|
`enscript {{path/to/input_file}} --color=1 --highlight={{language}} --output={{path/to/output_file}}`
|