Pygments port of Github Color Scheme.
$ (sudo) pip install pygments-style-extras
$ git clone git://github.com/thecodechef/pygments-style-extras.git $ cd pygments-style-extras $ (sudo) python setup.py install
>>> from pygments.formatters import HtmlFormatter >>> HtmlFormatter(style='github').style <class 'pygments_style_github.GithubStyle'>
$ pygmentize -S [style] -f html -a .parent > [style].css
- github
- monokai_light
- railscasts
and Many Nore on the way
$ pygmentize -S github -f html -a .highlight > github.css
Output:
.highlight .hll { background-color: #ffffcc } .highlight { background: #ffffff; } .highlight .c { color: #999988; font-style: italic } /* Comment */ ...
Pygments at the moment supports over 150 different programming languages, template languages and other markup languages. To see an exhaustive list of the currently supported languages, use the command:
$ pygmentize -L lexers
To get a list of all available stylesheets, execute the following command on the command line:
$ pygmentize -L styles
Please read the official documentation for further information on the usage of pygment styles.