".sql" 文件高亮展示

参考:

举例:

1
rich --lexer sql /path/to/test.sql

安装 rich 到 python repl

1
2
3
from rich import pretty

pretty.install()