winprint
CsharpToColouredHTML
winprint | CsharpToColouredHTML | |
---|---|---|
1 | 2 | |
69 | 31 | |
- | - | |
0.0 | 4.8 | |
10 months ago | about 1 month ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
winprint
-
Everything you ever wanted to know about terminals(but were afraid to ask)
I built a cross platform app to print 'pretty formatted' source code [1]. I didn't want to re-invent the wheel on formatting source code, so looked at all the existing libraries. Originally I figured formatting to HTML, and then building a print-friendly HTML render would work. But this proved super challenging. I tried a dozen HTML engines (including Chromium) but none gave me enough control to render just a single page of the original source file.
Then I noticed Pygments, a Python-based library for pretty formatting source code, has an option to output an ANSI formatted file. I quickly found a bunch of libraries that could render ANSI formatted text to a print canvas.
In the end, I put the original source code file through 'pygmentize -16m -o tempfile.an` (`16m` is the 16M color terminal ANSI formatter) and pipe the `tempfile.an` through a print-optimized renderer to actually print the source code.
ANSI escapes FTW!
[1] WinPrint - https://github.com/tig/winprint
CsharpToColouredHTML
What are some alternatives?
libapps - Fork of https://chromium.googlesource.com/apps/libapps/
PKHeX.Mobile - Pokémon save editor for Android and iOS!
blessed - Blessed is an easy, practical library for making python terminal apps
Report-From-DocX-HTML-To-PDF-Converter - .NET Core library to create custom reports based on Word docx or HTML documents and convert to PDF
JsonSubTypes - Discriminated Json Subtypes Converter implementation for .NET
UnitsNet - Makes life working with units of measurement just a little bit better.
DevToys - A Swiss Army knife for developers.
PKHeX - Pokémon Save File Editor