Hi,
I'm sure this must've been asked a hundred times already, but I couldn't google a decent answer for this: How do I enable syntax color for HTML in a PHP file, or vice versa.
If its a PHP file I'm working on, HTML turns grey.
I'd greatly appreciate any help. Thanks!
From what I understand, TextMate just figures it out. Set your mode to html, and it will color the html, but be smart enough to know what bits are in the php blocks, and color those.
I work exclusively in html mode, php seems to be colored fine in that mode as long as you have it in the usual <?php ?> block.
On Sep 9, 2009, at 10:57 PM, Ibrahim Ezzy wrote:
Hi,
I'm sure this must've been asked a hundred times already, but I couldn't google a decent answer for this: How do I enable syntax color for HTML in a PHP file, or vice versa.
If its a PHP file I'm working on, HTML turns grey.
I'd greatly appreciate any help. Thanks!
On Sep 10, 2009, at 1:57 AM, Ibrahim Ezzy wrote:
If its a PHP file I'm working on, HTML turns grey.
Like Scott said, just set the language to HTML. The PHP language grammar used to be called "X PHP → Use HTML" or something like that, which made this more obvious. Not sure why it was changed.