Sublime Forum

Broken SQL syntax highlighting in .php files - Sublime Text 4121

#1

SQL syntax is incorrectly highlighted in .php files.

Code:

<? "UPDATE t SET a = '".func()."' WHERE x = '$php_variable'" ?>

Result (Sublime Text 4121 in Safe Mode):

0 Likes

#2

SQL is highlighted in strings only if those begin with certain keywords/phrases which are known to start a query.

See:

2 Likes

#3

Ok, thanks!

0 Likes