Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/josef-friedrich/jf_pygments

Extend the Python syntax highlighter with some custom lexers and styles.
https://github.com/josef-friedrich/jf_pygments

Last synced: 23 days ago
JSON representation

Extend the Python syntax highlighter with some custom lexers and styles.

Awesome Lists containing this project

README

        

jf_pygments
===========

Extend the Python syntax highlighter with some custom lexers and styles.

https://pygments.org/docs/plugins/

::

pip install --user "pygments[plugins]"

::

pip install --user jf_pygments

https://python-poetry.org/docs/pyproject/#plugins

.. code-block:: toml

[tool.poetry.plugins]

[tool.poetry.plugins."pygments.styles"]
white = "jf_pygments:WhiteStyle"
baldr = "jf_pygments:BaldrStyle"

[tool.poetry.plugins."pygments.lexers"]
baldrsql = "jf_pygments:BaldrSqlLexer"

Check if the plugin is picked up by pygments::

pygmentize -L | grep baldr

testing::

pip install --user . ; ./test.sh