LinuxCommandLibrary

enscript

enscript

TLDR

Generate a PostScript file from a text file

$ enscript [path/to/input_file] --output=[path/to/output_file]
copy


Generate a file in a different language than PostScript
$ enscript [path/to/input_file] --language=[html|rtf|...] --output=[path/to/output_file]
copy


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]
copy


Display available syntax highlighting languages and file formats
$ enscript --help-highlight
copy


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]
copy

Copied to clipboard