fatteneder / MakieSlides.jl

MIT License
17 stars 2 forks source link

Allow creating and adding `pygments.styles` #27

Open fatteneder opened 2 years ago

fatteneder commented 2 years ago

Instructions on how to create styles in python are given here: https://pygments.org/docs/styledevelopment/#creating-own-styles

Loading styles into pygments requires tinkering with setuptools, see https://pygments.org/docs/plugins/

I managed to get it to work in python. It remains to figure out how to load it into PyCall, since the new styles have to be installed as a plugin using setuptools.

Open questions:

fatteneder commented 2 years ago

There is a discussion going on about alternative ways to register custom lexers or styles in pygments: https://github.com/pygments/pygments/issues/1096