Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support adding custom lexers #1

Open
item4 opened this issue Jan 19, 2016 · 3 comments
Open

Support adding custom lexers #1

item4 opened this issue Jan 19, 2016 · 3 comments

Comments

@item4
Copy link

item4 commented Jan 19, 2016

I want to add custom lexer what pygments do not support yet.

How can I do it?

@kiddten
Copy link
Contributor

kiddten commented Nov 8, 2016

Bump
Any news?

@mthuurne
Copy link

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
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants