1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/enscript.md

25 lines
958 B
Markdown
Raw Normal View History

2018-10-12 14:11:09 -04:00
# enscript
2019-08-04 16:05:15 +02:00
> Convert text files to PostScript, HTML, RTF, ANSI, and overstrikes.
> More information: <https://manned.org/enscript>.
2018-10-12 14:11:09 -04:00
2019-08-04 16:05:15 +02:00
- Generate a PostScript file from a text file:
2018-10-12 14:11:09 -04:00
`enscript {{path/to/input_file}} {{[-o|--output]}} {{path/to/output_file}}`
2018-10-12 14:11:09 -04:00
2019-08-04 16:05:15 +02:00
- Generate a file in a different language than PostScript:
2018-10-12 14:11:09 -04:00
`enscript {{path/to/input_file}} {{[-w|--language]}} {{html|rtf|...}} {{[-o|--output]}} {{path/to/output_file}}`
2018-10-12 14:11:09 -04:00
2019-08-04 16:05:15 +02:00
- Generate a PostScript file with a landscape layout, splitting the page into columns (maximum 9):
2018-10-12 14:11:09 -04:00
`enscript {{path/to/input_file}} --columns {{num}} {{[-r|--landscape]}} {{[-o|--output]}} {{path/to/output_file}}`
2018-10-12 14:11:09 -04:00
2019-08-04 16:05:15 +02:00
- Display available syntax highlighting languages and file formats:
2018-10-12 14:11:09 -04:00
`enscript --help-highlight`
2019-08-04 16:05:15 +02:00
- Generate a PostScript file with syntax highlighting and color for a specified language:
2018-10-12 14:11:09 -04:00
`enscript {{path/to/input_file}} --color 1 {{[-E|--highlight]}} {{language}} {{[-o|--output]}} {{path/to/output_file}}`