Skip to content

Syntax highlighting: SQL #2063

Answered by willmcgugan
mharig asked this question in Ideas
Mar 14, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote
from rich import print
from rich.syntax import Syntax
print(Syntax("SELECT * FROM Customers WHERE CustomerID=1;", lexer="mysql", theme="monokai"))

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mharig
Comment options

@mharig
Comment options

Answer selected by mharig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants