An open API service indexing awesome lists of open source software.

https://github.com/mminer/code2html

Tool to convert code files to syntax-highlighted HTML.
https://github.com/mminer/code2html

Last synced: about 2 months ago
JSON representation

Tool to convert code files to syntax-highlighted HTML.

Awesome Lists containing this project

README

        

Recursively steps through a folder of code and converts the files to
syntax-highlighted HTML for easy viewing.

Requires that Python 3 be installed as well as [Jinja2](http://jinja.pocoo.org)
(for template rendering) and [Pygments](http://pygments.org) (for syntax
highlighting).

pip3 install -r requirements.txt
python3 code2html.py

The directory of files to convert should be named `in`. The output is written
to a directory named `out`. Before running this script, customize
`template.html` as desired.