I feel like an idiot for asking this, since I completely switched from BBEdit a month ago. But, here goes...
Is it possible to to highlight PHP and HTML at the same time. The only way to get HTML to highlight (that I can find) is to use the syntax "HTML (Basic)". There is a "PHP" and an "HTML (PHP)", but they both render the HTML as gray.
Solution? Anybody?
Thank you,
--==<< R i c h a r d B r o n o s k y >>==--
On Mar 8, 2005, at 8:45 AM, Bruno Bronosky wrote:
I feel like an idiot for asking this, since I completely switched from BBEdit a month ago. But, here goes...
Is it possible to to highlight PHP and HTML at the same time. The only way to get HTML to highlight (that I can find) is to use the syntax "HTML (Basic)". There is a "PHP" and an "HTML (PHP)", but they both render the HTML as gray.
Solution? Anybody?
the solution would be to modify the HTML-PHP.plist syntax, but it has already been done for you :) You will need to checkout the latest changes from the macromates subversion repository.
I thought there was a post about this in the macromates weblog but I couldn't find it. Here was a post on the list about it: http://one.textdrive.com/pipermail/textmate/2005-February/003187.html
Thank you,
--==<< R i c h a r d B r o n o s k y >>==--
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
On 8 Mar 2005, at 14:45, Bruno Bronosky wrote:
Is it possible to to highlight PHP and HTML at the same time. The only way to get HTML to highlight (that I can find) is to use the syntax "HTML (Basic)". There is a "PHP" and an "HTML (PHP)", but they both render the HTML as gray.
Yes absolutely!! although within some minor limitations, which hopefully will be sorted by TM 1.1b6 or later, which is due to recursion problems with the current syntax engine.
There is a complete syntax bundle for PHP dev's which contains PHP, HMTL, CSS & JS syntax's that are fairly similar in style and works well together, and trust me they are far from gray. :)
You can find that bundle on the Bundle Repository:
If you have Subversion installed you just copy this to Terminal:
svn checkout --username anon --password anon http://macromates.com/svn/Bundles/trunk/PHP.tmbundle ~/Library/Application\ Support/TextMate/Bundles/PHP.tmbundle
If you don't have Subversion, just send me an e-mail and I'll send you the bundle off-list.
What version of TM do you have installed ????
Kind regards,
Mats
---- "TextMate, coding with an incredible sense of joy and ease" - www.macromates.com -
I'm using TM 1.1b5
I just got the new PHP bundle. I notice color scheme changes, but still lack HTML highlighting in PHP documents. What syntax enables HTML and PHP highlighting at the same time?
Thank you,
--==<< R i c h a r d B r o n o s k y >>==--
On Mar 8, 2005, at 10:55 AM, Mats Persson wrote:
On 8 Mar 2005, at 14:45, Bruno Bronosky wrote:
Is it possible to to highlight PHP and HTML at the same time. The only way to get HTML to highlight (that I can find) is to use the syntax "HTML (Basic)". There is a "PHP" and an "HTML (PHP)", but they both render the HTML as gray.
Yes absolutely!! although within some minor limitations, which hopefully will be sorted by TM 1.1b6 or later, which is due to recursion problems with the current syntax engine.
There is a complete syntax bundle for PHP dev's which contains PHP, HMTL, CSS & JS syntax's that are fairly similar in style and works well together, and trust me they are far from gray. :)
You can find that bundle on the Bundle Repository:
If you have Subversion installed you just copy this to Terminal:
svn checkout --username anon --password anon http://macromates.com/svn/Bundles/trunk/PHP.tmbundle ~/Library/Application\ Support/TextMate/Bundles/PHP.tmbundle
If you don't have Subversion, just send me an e-mail and I'll send you the bundle off-list.
What version of TM do you have installed ????
Kind regards,
Mats
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
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
On 8 Mar 2005, at 18:38, Bruno Bronosky wrote:
I just got the new PHP bundle. I notice color scheme changes, but still lack HTML highlighting in PHP documents. What syntax enables HTML and PHP highlighting at the same time?
HTML (PHP) syntax from View -> Syntax Highlight As...
Grab a screenshot of the code and a code snippet and send it to me off-list to see if I can work out what's going on.
Kind regards,
Mats
---- "TextMate, coding with an incredible sense of joy and ease" - www.macromates.com -
I'll answer my own question. I closed TM, deleted the com.macromates.textmate.plist preference and now it uses the "HTML (PHP)" syntax by default.
(Just got Mats' response.) I don't know how to recreate the error Mats, I'm sorry.
But I do have some question about the phpcc stuff ( http://ian.ardes.com/phpcc/ ). Is that in the php bundle from the svn? I think I installed that a while back, but I don't know how it survived the update.
Thank you,
--==<< R i c h a r d B r o n o s k y >>==--
On Mar 8, 2005, at 1:38 PM, Bruno Bronosky wrote:
I'm using TM 1.1b5
I just got the new PHP bundle. I notice color scheme changes, but still lack HTML highlighting in PHP documents. What syntax enables HTML and PHP highlighting at the same time?
Thank you,
--==<< R i c h a r d B r o n o s k y >>==--
On Mar 8, 2005, at 10:55 AM, Mats Persson wrote:
On 8 Mar 2005, at 14:45, Bruno Bronosky wrote:
Is it possible to to highlight PHP and HTML at the same time. The only way to get HTML to highlight (that I can find) is to use the syntax "HTML (Basic)". There is a "PHP" and an "HTML (PHP)", but they both render the HTML as gray.
Yes absolutely!! although within some minor limitations, which hopefully will be sorted by TM 1.1b6 or later, which is due to recursion problems with the current syntax engine.
There is a complete syntax bundle for PHP dev's which contains PHP, HMTL, CSS & JS syntax's that are fairly similar in style and works well together, and trust me they are far from gray. :)
You can find that bundle on the Bundle Repository:
If you have Subversion installed you just copy this to Terminal:
svn checkout --username anon --password anon http://macromates.com/svn/Bundles/trunk/PHP.tmbundle ~/Library/Application\ Support/TextMate/Bundles/PHP.tmbundle
If you don't have Subversion, just send me an e-mail and I'll send you the bundle off-list.
What version of TM do you have installed ????
Kind regards,
Mats
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
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
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
On 8 Mar 2005, at 19:02, Bruno Bronosky wrote:
I don't know how to recreate the error Mats, I'm sorry.
No worries, problem is sorted and that's what's important.
But I do have some question about the phpcc stuff ( http://ian.ardes.com/phpcc/ ). Is that in the php bundle from the svn? I think I installed that a while back, but I don't know how it survived the update.
Sorry, not the right man to ask about that stuff. Never used it, and it's not part of the official PHP.tmbundle, or in the SVN. Just look for phpcc in your bundle editor I guess.
Kind regards,
Mats
---- "TextMate, coding with an incredible sense of joy and ease" - www.macromates.com -