Alroc
Alroc

Reputation: 111

sqlite syntax highlighting for python3 in VSCode

Is there a way to highlight sqlite3 syntax within python3 code in Visual Studio Code? As a lot of the code is within strings, python3 highlights it as a string making it hard to read.

Thanks!

Upvotes: 1

Views: 1862

Answers (2)

WinnieNotThePooh
WinnieNotThePooh

Reputation: 180

I would recommend this one, for me it works fine

https://marketplace.visualstudio.com/items?itemName=chdsbd.python-inline-sql-syntax

enter image description here

Upvotes: 0

iuyoy
iuyoy

Reputation: 151

I build an extension called Highlight String Code which can highlight SQLs in python or any other languages.

You can easily use it by uppercasing the first keyword of SQL and adding a semicolon at the end:

enter image description here

I hope it can be helpful.

Upvotes: 2

Related Questions