A port of pygments for elixir. Pygments is a syntax highlighting library written for python. It supports lexers for hundreds of languages using a weird lexer format based on state machines powered by regex matches. The hard part is porting all the lexers. I’m using the excelent ExSpirit library by @OvermindDL1 for the lexers. It will be open source (MIT license probably)
EDIT: as of now, the library lexes elixir (but can’t turn it into HTML or any other format yet).
I’m gathering some generic helper lexer utilities that can be reused across lexers.
I plan on suporting some improvements over pygments, the biggest of which is highlighting matching delimiters ( [ ], { }, << >>, etc.) The goal is to be able to render them in matching colors or (for the HTML backend) highlighting the pair when the mouse hovers on one of the elements.






















