Support adding custom lexers
Opened this issue · 3 comments
item4 commented
I want to add custom lexer what pygments do not support yet.
How can I do it?
kiddten commented
Bump
Any news?
mthuurne commented
Plugins are installed with pip
, so you could tell the pip
instance that comes with Lektor (~/.local/lib/lektor/bin/pip
on my PC) to install a different version of Pygments, for example from a local directory or from version control. See the pip docs for details.
To automate this, I guess you'd have to clone the plugin and then override the Pygments version requirement in setup.py
.
davidferguson commented
@item4 @kiddick Adding custom lexers is possible, but not quite as easy as custom renderers. Have a look how i've done it for my Lektor plugin: https://github.com/davidferguson/lektor-markdown-mactutor