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

Rendering with the sourcecode Content Type Engine is painfully slow #13

Closed tig closed 4 years ago

tig commented 4 years ago

WinPrint's Source Code Content Type Engine works by

1) Processing the file via the prismjs Node-based syntax highlighting tool (which generates HTML). 2) Rendering the resulting HTML using the github.com/litehtml HTML renderer.

Litehtml is quite slow.

The fix will be to find a faster html rendering engine that supports print scenarios. My dream is to be able to coerce VS Code into letting me access all of it's file rendering, removing both the dependency on PrismJS and litehtml.

tig commented 4 years ago

Fixed via AnsiCte/Pygments!