pygments-server /

Filename Size Date modified Message
91 B
1.3 KB
707 B
3.5 KB
A modified version of the SimpleHTTPRequestHandler to serve source code highlighted versions of files that are understood by Pygments (

Requires a working installation of pygments.

run the script in the root directory of the source tree that you wish to browse.  Connect to http://localhost:8000 and
navigate the tree.  Files that can be displayed should be displayed with appropriate formating.

Change the server address at line 107 if you want to host it somewhere other than localhost.  The port can be changed on the commandline ( <portnumber>) when running the script.

May not correctly handle some non-ASCII encodings.