Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
css files created from pygment's built-in styles
branch: master

This branch is 12 commits behind richleland:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.rst
autumn.css
borland.css
bw.css
colorful.css
default.css
emacs.css
friendly.css
fruity.css
manni.css
murphy.css
native.css
pastie.css
perldoc.css
tango.css
trac.css
vim.css
vs.css

README.rst

pygments-css

Pygments, a Python-based code highlighting tool, comes with a set of builtin styles (not css files) for code highlighting. You have to generate a CSS file using the command line. I just figured I'd save someone this work in the future and generate all the CSS files based on the Pygments builtins.

Pretty simple stuff here. These css files were generated using pygmentize on the command line like so:

pygmentize -S default -f html > default.css

I'm using a combination of Pygments and Markdown on a django project that has a model with the following save method:

def save(self):
    self.html = markdown(self.body, 'codehilite')
    super(Entry, self).save()

That's why the CSS styles all have .codehilite in front of them. You should change the .codehilite to work with the style name that you use for your Pygments HTML output.

Something went wrong with that request. Please try again.