Re(2): [TxMt] excluding match from language pattern

Quinn Comendant quinn at strangecode.com
Mon Mar 6 19:23:53 UTC 2006


On Mon, 6 Mar 2006 12:12:40 +0100, Soryu wrote:
>Some time ago I introduced a SQL heredoc in PHP. Why not use this:
>
>	...
>	$query = <<<SQL
>SELECT * FROM `users` WHERE `foo` = {$bar};
>SQL;
>	...
>
>It will color the SQL according to the SQL syntax and let PHP  
>substitute the variables as specified ...


Thanks Soryu, I saw that HEREDOC code. But I have my own reasons for
doing the code the way I did (one reason being supporting 100000 lines
of legacy code). Any ideas?

Q





More information about the textmate mailing list