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
905 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.
2019-06-08 01:04:00 +01:00
> More information: <https://www.gnu.org/software/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}} --output={{path/to/output_file}}`
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
2019-08-04 16:05:15 +02:00
`enscript {{path/to/input_file}} --language={{html|rtf|...}} --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}} --landscape --output={{path/to/output_file}}`
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 --highlight={{language}} --output={{path/to/output_file}}`