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.
- Host: GitHub
- URL: https://github.com/mminer/code2html
- Owner: mminer
- Created: 2015-01-08T04:47:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-04T17:05:36.000Z (over 8 years ago)
- Last Synced: 2025-01-20T14:31:54.451Z (3 months ago)
- Language: HTML
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
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.pyThe 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.