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
-----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
Thanks Simon! It did help...seems obvious to me now!
On Mar 22, 2007, at 11:31 AM, Simon Ruderich wrote:
-----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-----
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate