euporie.core.widgets.cell.get_lexer_by_name

euporie.core.widgets.cell.get_lexer_by_name(_alias, **options)

Return an instance of a Lexer subclass that has alias in its aliases list. The lexer is given the options at its instantiation.

Will raise pygments.util.ClassNotFound if no lexer with that alias is found.