renton01
renton01

Reputation: 79

Syntax-highlighting for SQL strings in Python code

I'm taking my first steps in SQLite3 in Python using VSCode. My problem is when I use a SQL command there isn't any syntax highlighting.

enter image description here

Is there any way to get the syntax highlighting?

Upvotes: 2

Views: 1943

Answers (2)

renton01
renton01

Reputation: 79

Update Thank you for your answer, but I've found one way: using Sublime Text. example

Upvotes: 2

Adityan.P
Adityan.P

Reputation: 112

It Seems that the SQL Command is just a String and all Editors Work this way and doesn't recognise code inside a String. Anyways found some VS-CODE Extensions that might be of help,

Python String SQL Highlight String Code

Upvotes: 2

Related Questions