Textual currently leverages pygments (pygments.gues_lexer) (browsr -> textual -> rich -> pygments) to handle syntax highlighting - the best way to gain this support would be to add the feature upstream. I think adding a shebang might also handle this.
Hopefully soon, I'll be replacing pygments with tree-sitter for syntax highlighting. I'll make sure these extensions are handled then inside of browsr.
Please mark
*.xsh
and*.xonshrc
as Python for syntax highlighting of xonsh shell scripts.For community
⬇️ Please click the 👍 reaction instead of leaving a
+1
or 👍 comment