[TxMt] PHP/HTML language definition

Simon Ruderich simon at ruderich.com
Thu Mar 22 17:31:07 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Michael Jackson wrote:
> I've been toying around with the idea of a PHP/HTML language definition.
> The problem is that when I'm working on a PHP project, I switch back and
> forth between pure PHP files and PHP/HTML files all the time. As you can
> imagine, switching the language definition each time to get proper 
> syntax hilighting can get bothersome. It would most likely be a huge
> bundle and take a lot of work, but I was just wondering if anybody else
> has found any tricks for this kind of issue before I investigate it
> further.
> 
> Thanks,
> 
> Michael

Just use HTML as language for all your html/php files. The language
definition for PHP is included in HTML-files if <?php ... ?> is found.
This works fine for me.
Hope this helps,
Simon
- --
+ privacy is necessary
+ using http://gnupg.org
+ public key id: 0x6115F804EFB33229
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFGAr1bYRX4BO+zMikRCoBgAKCkAkdRq5pcVRUTub6AQHtH+nx+wwCeI7hI
ON1GdsatqoJCOGCJdpMpO4A=
=ZAhh
-----END PGP SIGNATURE-----



More information about the textmate mailing list