1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-07 16:06:03 +02:00

enscript: reword page (#3220)

This commit is contained in:
Marco Bonelli 2019-08-04 16:05:15 +02:00 committed by Starbeamrainbowlabs
parent a9499b442f
commit 9bd20d5328

View file

@ -1,24 +1,24 @@
# enscript # enscript
> A tool to convert text files to PostScript, HTML, RTF, ANSI, and overstrikes. > Convert text files to PostScript, HTML, RTF, ANSI, and overstrikes.
> More information: <https://www.gnu.org/software/enscript>. > More information: <https://www.gnu.org/software/enscript>.
- Generate PostScript from a file and output to another: - Generate a PostScript file from a text file:
`enscript {{path/to/input_file}} --output={{path/to/output_file}}` `enscript {{path/to/input_file}} --output={{path/to/output_file}}`
- Generate a certain output language (eg. "html") from a file and output to another: - Generate a file in a different language than PostScript:
`enscript {{path/to/input_file}} --language={{language}} --output={{path/to/output_file}}` `enscript {{path/to/input_file}} --language={{html|rtf|...}} --output={{path/to/output_file}}`
- Generate PostScript from a file and output to another with 1 to 9 column per page in landscape: - Generate a PostScript file with a landscape layout, splitting the page into columns (maximum 9):
`enscript {{path/to/input_file}} --columns={{num}} --landscape --output={{path/to/output_file}}` `enscript {{path/to/input_file}} --columns={{num}} --landscape --output={{path/to/output_file}}`
- Display available syntax highlighting: - Display available syntax highlighting languages and file formats:
`enscript --help-highlight` `enscript --help-highlight`
- Generate PostScript from a file and output to another with syntax highlighting and color for a specified language: - Generate a PostScript file with syntax highlighting and color for a specified language:
`enscript {{path/to/input_file}} --color=1 --highlight={{language}} --output={{path/to/output_file}}` `enscript {{path/to/input_file}} --color=1 --highlight={{language}} --output={{path/to/output_file}}`