Skip to main content

A Pygments style providing the Molokai colour scheme.

Project description

This Python package can be used to add the Molokai colour theme to Pygments. It was generated from the Vim Molokai plugin using the Vim Colorscheme Converter. Once installed, a Pygments style named ‘molokai’ will become available.

Pygments Molokai Screen Shot

Install

With Pygments installed, the Molokai style can be added as follows:

Using PyPI and pip

The easiest way is to use ‘pip’:

$ pip install pygments-molokai

Manual

For those who want to work from code, you can install the Molokai theme manually. First make sure that Poetry is installed (see here). Then:

$ git clone git://github.com/gbpoole/pygments-molokai.git
$ cd pygments-molokai
$ poetry install

Usage examples

From Python:

>>> from pygments.formatters import HtmlFormatter
>>> HtmlFormatter(style='molokai').style
<class 'pygments_style_molokai.MolokaiStyle'>

or from the command line:

pygmentize -g -O style=molokai <FILENAME>

Help

More information about Pygment styles can be found at the official Pygments documentation page.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygments-molokai-0.0.3.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

pygments_molokai-0.0.3-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page