From 03a2e1fe9ca1daf295d6ca2a63c2f30bc10710bd Mon Sep 17 00:00:00 2001 From: James Porter Date: Thu, 28 Mar 2013 15:10:14 -0500 Subject: [PATCH] Improve faq on custom theme syntax highlighting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I was pretty confused about how to get syntax highlighting working in my own theme, figured I'd submit a PR with some explanation that would have helped me and will (hopefully) be helpful to others. --- docs/faq.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/faq.rst b/docs/faq.rst index 9429a44f..d6363478 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -49,6 +49,14 @@ class in your theme's CSS file. To see how various styles can be used to render Django code, for example, you can use the demo `on the project website `_. +One you have deicded which style you like, you can find a list of pregenerated css +files for each in `this github repo `_. +Then go ahead drop your chosen stylesheet into the ``static/css`` directory of your custom +theme and you're free to link it in your templates or import it into other stylesheets. +To get an idea of how to do this, check out the `samples +`_. Of course, you can also change +the pygments stylesheet to your heart's desire if none of the default themes satisfy you. + How do I create my own theme? ==============================