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.
|
2025-03-26 02:30:50 +02:00
|
|
|
> 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
|
|
|
|
2025-03-26 02:30:50 +02: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
|
|
|
|
2025-03-26 02:30:50 +02: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
|
|
|
|
2025-03-26 02:30:50 +02: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
|
|
|
|
2025-03-26 02:30:50 +02:00
|
|
|
`enscript {{path/to/input_file}} --color 1 {{[-E|--highlight]}} {{language}} {{[-o|--output]}} {{path/to/output_file}}`
|