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.ClassNotFound
is raised if no lexer thinks it can handle the content.