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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygments-molokai-0.0.3.tar.gz.
File metadata
- Download URL: pygments-molokai-0.0.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.10.0 Linux/5.11.0-1020-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46d832554bccbe4af12c1a14ba387e84f1057aabc0d01fe83b2cb0e61efb2349
|
|
| MD5 |
5e73fc8c11a0d75e936fa66bca8f37da
|
|
| BLAKE2b-256 |
91711358fd625d712e0728db20fd4aae60fcc82ed3748e8cf40b38e9cbf88fd1
|
File details
Details for the file pygments_molokai-0.0.3-py3-none-any.whl.
File metadata
- Download URL: pygments_molokai-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.10.0 Linux/5.11.0-1020-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40fbc52aaeb057d5a5da6f8977200a6a59e8068951ae30b93890ac0f0e653179
|
|
| MD5 |
2f5ab1a7385ee24cf327335df38d6110
|
|
| BLAKE2b-256 |
9916acf3df36c7877acc644b2f7d6a438c7eed26e55b22ebd5820923e1d8a338
|