-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recognise shebangs #19
Comments
Oh this is a good idea. I'm using the https://rich.readthedocs.io/en/stable/reference/syntax.html#rich.syntax.Syntax.guess_lexer Lines 175 to 184 in 26a1bf3
I wonder if checking for a shebang would be a welcome addition to the upstream libraries too. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Syntax highlighting seems to br triggered by file types, i.e. file extensions. So that
fred.py
is highligghted as Python syntax. Unfortunately this means that a file called justfred
, which is executable and has#! /usr/bin/env python
on the first line is not recognised, hence not highlighted.The text was updated successfully, but these errors were encountered: