diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2020-11-11 21:32:01 -0500 |
---|---|---|
committer | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2020-11-11 21:32:01 -0500 |
commit | 84d24fa1eff86eae6643875f91907df488ce6078 (patch) | |
tree | e64efd889109864841b4d92e361c7273f6cb980f /syntax-highlighting-server.py | |
parent | 07a96014142ee9526e420e3cc4695925498ccb25 (diff) | |
download | cgit-syntax-highlighting-84d24fa1eff86eae6643875f91907df488ce6078.tar.xz cgit-syntax-highlighting-84d24fa1eff86eae6643875f91907df488ce6078.zip |
improve documentation
Diffstat (limited to 'syntax-highlighting-server.py')
-rwxr-xr-x | syntax-highlighting-server.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/syntax-highlighting-server.py b/syntax-highlighting-server.py index a1e30d6..481c4c0 100755 --- a/syntax-highlighting-server.py +++ b/syntax-highlighting-server.py @@ -1,16 +1,5 @@ #!/usr/bin/env python3 -# syntax-highlighting-server.py: create a simple HTTP server to highlight -# source for cgit. improves performance compared to invoking python on every -# request. -# -# Requirements: Python 3, pygments. -# -# Usage: Configure your system to run this at boot. Note that this program is -# not hardened, and it can be trivially DoSed. therefore, do not configure it -# to listen on a public network. Once configured, set your cgit source filter -# to syntax-highlighting-client.sh. - import pygments from pygments import highlight from pygments.formatters import HtmlFormatter |