Textualize / rich-cli

Rich-cli is a command line toolbox for fancy output in the terminal
https://www.textualize.io
MIT License
2.99k stars 77 forks source link

Fallback to TextLexer in case no lexer is found #12

Closed liiight closed 2 years ago

liiight commented 2 years ago

Catch ClassNotFound exception from pygments when guess_lexer_for_filename fails, use TextLexer in this case.

Related #11

willmcgugan commented 2 years ago

Thanks!