euporie.core.lexers.detect_lexer

euporie.core.lexers.detect_lexer(text: str = '', path: Path | None = None, language: str = '') PygmentsLexerCls | None

Detect the pygments lexer for a file.