Skip to content

css files created from pygment's built-in styles

Notifications You must be signed in to change notification settings

Malet/pygments-css

This branch is 15 commits behind richleland/pygments-css:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d4b4e94 · Feb 17, 2013

History

8 Commits
Feb 17, 2013
May 27, 2009
May 27, 2009
May 27, 2009
May 27, 2009
May 27, 2009
May 27, 2009
May 27, 2009
May 27, 2009
Jul 24, 2012
May 27, 2009
Oct 14, 2011
May 27, 2009
May 27, 2009
May 27, 2009
May 27, 2009
May 27, 2009
May 27, 2009
May 27, 2009
May 27, 2009
Jul 24, 2012

Repository files navigation

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.

Theme previews

To preview the various themes, check out http://igniteflow.com/pygments/themes/ from igniteflow.

About

css files created from pygment's built-in styles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published