Skip to content

saratheriver/enigma-pygments

Repository files navigation

ENIGMA Pygments Style

Enable a style in Pygments Python package for highlighting customized 'friendly' code. Notably, this can be coupled with Sphinx Python documentation generator.

Install

python -m pip install enigma-pygments-style==2020.7.8.2

Verify it is working

Please run the following commands in the Python Interpreter:

    >>> from pygments.styles import get_all_styles
    >>> list(get_all_styles())

And verify that you have a new Pygments style named enigmalexer

Using it in your Sphinx latex output

To use this freshly installed Pygment style, you finally need to add the following line to your conf.py file:

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'enigmalexer'

Modifying style rules

To modify it, please take a look at the file enigmalexer.py