You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 just fred, 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:
Oh this is a good idea. I'm using the rich.syntax.Syntax.guess_lexer method from Rich to handle this currently since the Syntax class is handling almost everything else. In turn it uses pygments to handle it.
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: