[TxMt] scoping issue in html/php ??

Ciarán Walsh ciawal at gmail.com
Fri Oct 20 16:01:15 UTC 2006


If you really want to have HTML scope for a string literal you can use
a heredoc with 'HTML' as the terminator:

<?php
echo <<<HTML
<p>This is html</p>
HTML;
?>

this will give you HTML highlighting and commands etc for the length
of the heredoc.
It also works for 'SQL'.

You can check what the current scope is at any time with control-shift-P



More information about the textmate mailing list