Sublime Forum

SQL in PHP display

#1

Hey,

In Sublime, this shows the SQL in pretty colors:

$result = $this->db->query("SELECT COUNT(id) as count
	FROM users
	WHERE TYPE='consumer'
")->result();

whereas this just shows the SQL as all one color:

$result = $this->db->query("
	SELECT COUNT(id) as count
	FROM users
	WHERE TYPE='consumer'
")->result();

Any thoughts on how to fix?

Thanks!

0 Likes