Browse files

Added some details to README.

  • Loading branch information...
richleland committed May 27, 2009
1 parent c35edc2 commit 3ce53178e2ee13715a0f6d133e8fd1154c40eb9e
Showing with 9 additions and 2 deletions.
  1. +9 −2 README.rst
@@ -1,10 +1,17 @@
+Pygments ( comes with a set of builtin styles (not css files) for code highlighting (see 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 these on a django project model with the following save method::
+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()
+ super(Entry, self).save()
+That's why the CSS styles all have .codehilite in front of them. You should change that to work with the style name that you use for your Pygments HTML output.

0 comments on commit 3ce5317

Please sign in to comment.