Syntax highlighting for fenced code in .md files
Problem to solve
There is no syntax highlighting, and i find it necessary.
EDIT: i mean there is no syntax highlighting for fenced code in the output HTML.
Who will benefit
It will improve readability of code for everyone.
Proposal
Use the syntax highlighting extension in the markdown rendering module.
Version of GitBuilding you use
- Version: 0.8.4
Further information
I looked at the markdown module used to render the .md files to HTML:
- Library reference: https://python-markdown.github.io/reference/
- Syntax highlighting extension: https://python-markdown.github.io/extensions/code_hilite/
This is as far as i got by spelunking:
The render_md
function at gitbuilding/render.py seems to load extensions such as this one.
Using the extension also requires generating a CSS stylesheet for the highlighting using python-pygments. It should also be included in the HTML header.
There may be more requirements for using it, but that is as far as i got for now.
Any ideas on how to do this?
Thanks :)
Edited by naikymen