_posts/2013-09-26-pygments-style-railscasts.md
---
layout: post
title: "pygments style railscasts"
description: "pygments style railscasts"
categories: python
tags: [pygments, python, ruby, jekyll]
---
Installation:
=============
Using PyPI and pip:
pip install pygments-style-railscasts
Manual installation:
git clone git://github.com/DrMegahertz/pygments-style-railscasts.git
cd pygments-style-railscasts
python setup.py install
Usage example:
==============
>>> from pygments.formatters import HtmlFormatter
>>> HtmlFormatter(style='railscasts').style
<class 'pygments_style_railscasts.RailscastsStyle'>
Export the style as CSS:
========================
pygmentize -S railscasts -f html > railscasts.css
Please read the [official documentation][pygments] for further information
on the usage of pygment styles.
[pygments]: http://pygments.org/docs/