Skip to content

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

License

Notifications You must be signed in to change notification settings

Josef-Friedrich/jf_pygments

Repository files navigation

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

[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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published