Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Possibility to add a custom lexer #187

@areiterer

Description

@areiterer

Hello,

I'm using a software called SoftCover that calls pygments.rb.
Unfortunately, pygments does not support JSX (ReactJS) highlighting, but there is a custom lexer called "pygments-lexer-babylon" that can be installed via pip.

I'm not a Ruby developer, but I could find out that pygments.rb comes with it's own version of pygments and therefore it can't find the custom lexer.

Also I could see that there is a custom_lexers directory, but I don't know yet how to get pygments.rb to use the custom lexer.

Is there a way to add the package to pygments.rb?
I could try to do it on my own with a little help if there is a possibility for that.

Thanks very much in advance,
Andreas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions