tigefa4u/tigefa4u.github.io

View on GitHub
_posts/2013-09-26-pygments-style-railscasts.md

Summary

Maintainability
Test Coverage
---
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/