Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Add built-in syntax highlighting
Highlighting previously required a source filter shelling out to something like Pygments. A configured source filter still takes precedence, every character is preserved so the line gutter stays aligned, and large files are skipped.
-rw-r--r--assets/cgit.css7
-rw-r--r--assets/cgit.js226
-rw-r--r--cgitrc.5.txt10
-rwxr-xr-xextensions/syntax-highlighting.py55
-rwxr-xr-xextensions/syntax-highlighting.sh121
-rw-r--r--source/ui-tree.c9
6 files changed, 247 insertions, 181 deletions