Pygments syntax highlighting styles for dark and light backgrounds
Install with:
$ pip install pygll
After installation, two new Pygments styles are available:
Python class | Plugin name |
---|---|
pygll.LivingLogicLightStyle |
livinglogic-light |
pygll.LivingLogicDarkStyle |
livinglogic-dark |
If you want to use this Pygments style with Sphinx put the following in your
conf.py
:
pygments_style = 'livinglogic-light'
Whether and how you can specify both styles to let the browser automatically switch them depending on the current OS color scheme depends on the HTML theme you're using.
Initial release.