Sublime Forum

Comment keyboard shortcut in PHP SQL string

#1

In a PHP file, if I have code like this:

		$cmd = new DBCommand('SELECT * FROM `Group`');
		$results = $cmd->query();

and I select part of the SQL string and press Ctrl+/ to comment the line out, instead of the regular PHP comment (//) I get an SQL comment (–). Oddly, if I make a selection that starts in the SQL string and ends outside of it, then press Ctrl+/, nothing happens.

0 Likes