algoo / preview-generator

generates previews of files with cache management
https://pypi.org/project/preview-generator/
MIT License
226 stars 50 forks source link

Feat: Pygment/Weasyprint builder for code source preview #245

Open inkhey opened 3 years ago

inkhey commented 3 years ago

Feature description and goals

Pygments is a great tool to deal with syntax coloring in source code file, it can render html file from it. Associated with weasyprint, it may help create proper pdf preview for source code file.

Prerequisites

Check this POC: https://github.com/algoo/preview-generator/compare/develop...fix/xxx__pygment_builder