Hi there,
I think this is more a new angle on an old question - can anyone tell me what I *lose* if I work with PHP in PHP-mode rather than HTML-mode? I ask because I am getting a little frustrated at the way snippets of HTML are messing with the folding on my PHP files. I realise it's probably bad form to have an open <div> tag in a separate file to it's closing </div> tag, but needs must when the devil drives. I have set the language to PHP and all seems to be ok, but I know I have read in a few places to set the language to HTML in PHP files.
Cheers, Nigel
It's not a big deal one way or the other. Pup seems to suit your Viding style, so run with that.
Sent from my iPhone
On 2 Feb 2009, at 04:10 PM, Nigel Green nigel@greenlemur.com wrote:
Hi there,
I think this is more a new angle on an old question - can anyone tell me what I *lose* if I work with PHP in PHP-mode rather than HTML-mode? I ask because I am getting a little frustrated at the way snippets of HTML are messing with the folding on my PHP files. I realise it's probably bad form to have an open <div> tag in a separate file to it's closing </div> tag, but needs must when the devil drives. I have set the language to PHP and all seems to be ok, but I know I have read in a few places to set the language to HTML in PHP files.
Cheers, Nigel
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 2 Feb 2009, at 17:10, Nigel Green wrote:
I think this is more a new angle on an old question - can anyone tell me what I *lose* if I work with PHP in PHP-mode rather than HTML-mode?
http://wiki.macromates.com/Troubleshooting/PHPSyntaxHighlight
As for what you lose, well, we tried to make it not completely broken, by having the PHP grammar itself double the <?php … ?> rules, but you will of course lose proper parsing of what’s outside those tags.
As for your problems working with PHP in HTML using the mode we designed for this, if you specifically list your problems, maybe it is something we can address.