[TextMate] Syntax Question: Including HTML in PHP syntax
Mats Persson
mats at imediatec.co.uk
Wed Oct 13 18:53:51 UTC 2004
I am trying to make sure that HTML code inside a PHP file is correctly
highlighted, but is unsure about how to do it.
Example:
<?php
function PrintHtml( )
{
?>
<!-- HTML ONLY AREA -->
<p>This is HTML</p>
<?php
}
?>
I understand that the syntax is as follows, but I don't know what the
'begin' and 'end' tags should be.
name = "Embedded HTML"; begin = "???????????"; end = "??????????????";
patterns = (
{ include = "HTML"; }
);
If anyone can help, I'd be grateful.
Kind regards,
Mats
More information about the textmate
mailing list