tig / winprint

winprint 2.0 - Advanced source code and text file printing. The perfect tool for printing source code, web pages, reports generated by legacy systems, documentation, or any text or HTML file. It works interactively or from the command line making it great for single users or whole enterprises. Works great with Powershell.
https://tig.github.io/winprint/
MIT License
73 stars 5 forks source link

Support specifying file type on command line #8

Closed tig closed 4 years ago

tig commented 4 years ago

This should work to override default mapping:

This would force the text/sourcecode content type to pretty-print as HTML code

winprint e28.htm --file-type html

This would force the text/html content type to print the file as html

winprint e28.htm --file-type text/html

This would force the text/plain content type to print the file as plain text

winprint e28.htm --file-type text/plain
tig commented 4 years ago

Fixed as of 8c4c8fa3cb65f94be9130001930c4678b60cfdd1