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
[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