Improve faq on custom theme syntax highlighting

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.
This commit is contained in:
James Porter 2013-03-28 15:10:14 -05:00
commit 03a2e1fe9c

View file

@ -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 Django code, for example, you can use the demo `on the project website
<http://pygments.org/demo/15101/>`_. <http://pygments.org/demo/15101/>`_.
One you have deicded which style you like, you can find a list of pregenerated css
files for each in `this github repo <https://github.com/richleland/pygments-css>`_.
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
<https://github.com/getpelican/pelican/tree/master/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? How do I create my own theme?
============================== ==============================