Outputs to file rather than stdout when multiple input files provided
Source code to formatted text converter
Brought to you by:
saalen
highlight 3.34
I may be misunderstanding the docs, but this behavior is surprising to me and I don't know how to avoid it.
highlight -O truecolor --force <a_file>
sends the output to stdout, as expected and desired.
highlight -O truecolor --force <a_file> <a_second_file>
writes the output to files in the current directory, with ".xterm" extensions. Is this intentional? What is the proper way to output from multiple input files to stdout?
Hi Andy,
this is indeed intentional, the README says:
This is imho the intuitive handling of the other output formats like HTML, RTF, TeX etc.
If all input files have the same syntax, you can use a pipe:
For handling mixed input files properly, a new flag like --stdout would be needed.
A new option --stdout was added in SVN. Release will be sometime next week.
Thank you!