euporie.core.lexers.guess_lexer_for_filename
- euporie.core.lexers.guess_lexer_for_filename(_fn, _text, **options)
As
guess_lexer(), but only lexers which have a pattern in filenames or alias_filenames that matches filename are taken into consideration.pygments.util.ClassNotFoundis raised if no lexer thinks it can handle the content.