Hi all -
I hadn't upgraded Textmate in quite a while and just recently did so (I think I had 1.2, and I'm at 1.5 now - needed to do this to get the GetBundle Bundle to work) and I noticed that the HTML (PHP) language selection is gone - now either HTML or PHP is all red, rather than both languages being colored correctly at the same time. I was reading a little in the lists and see that PHP is more of a 'top level' language now, but for those of us who have pages filled with HTML and PHP I'd love to see these files colored that way they were before.
For comparison, I have a HTML (ASP) bundle that seems to work like my old HTML(PHP) bundle. I tried recreating my old bundle using the ASP one as a guide, but no luck. Can this be remedied? Thanks.
ryan
On 21. Nov 2006, at 16:45, Ryan Masuga wrote:
I hadn't upgraded Textmate in quite a while and just recently did so (I think I had 1.2, and I'm at 1.5 now - needed to do this to get the GetBundle Bundle to work) and I noticed that the HTML (PHP) language selection is gone - now either HTML or PHP is all red, rather than both languages being colored correctly at the same time. I was reading a little in the lists and see that PHP is more of a 'top level' language now, but for those of us who have pages filled with HTML and PHP I'd love to see these files colored that way they were before.
Use HTML for those pages, it has always been like that. The PHP grammar is to be included by other grammars, not used stand-alone. I only partially made the possible because regardless of my efforts, people kept selecting it for their HTML files with PHP, and then sent me bug reports about e.g. treating stuff outside <?php … ?> as code etc.
On Nov 21, 2006, at 1:25 PM, Allan Odgaard wrote:
On 21. Nov 2006, at 16:45, Ryan Masuga wrote:
I hadn't upgraded Textmate in quite a while and just recently did so (I think I had 1.2, and I'm at 1.5 now - needed to do this to get the GetBundle Bundle to work) and I noticed that the HTML (PHP) language selection is gone - now either HTML or PHP is all red, rather than both languages being colored correctly at the same time. I was reading a little in the lists and see that PHP is more of a 'top level' language now, but for those of us who have pages filled with HTML and PHP I'd love to see these files colored that way they were before.
Use HTML for those pages, it has always been like that. The PHP grammar is to be included by other grammars, not used stand-alone. I only partially made the possible because regardless of my efforts, people kept selecting it for their HTML files with PHP, and then sent me bug reports about e.g. treating stuff outside <? php … ?> as code etc.
Hi Allan,
I am using HTML for my PHP pages. I never selected PHP before - never had to. The problem is that after I upgraded, all the PHP in my HTML is red - there is no syntax coloring of the PHP at all - but I had this working before. I had two different Language files:
HTML HTML (PHP)
And now the HTML (PHP) is no longer there, and using HTML, like I mentioned, doesn't perform any PHP coloring.
I think one problem I see is that scope is not going deep enough anymore. For example, if I’m in HTML and I hover over “page” in this text: <?php require('page.php'); ?> I get: text.html.basic source.php.embedded.html
But if I’m in PHP (which I never previously used, ever), hovering over the same text supplies: source.php string.quoted.single.php
I think what I ideally need is to be in HTML and see this when I use the scope selector, over that particular piece of text: text.html.basic source.php.embedded.html string.quoted.single.php
So, to sum up - I am using HTML for my PHP files. It used to color PHP correctly, now it no longer does. Using the scope selector, nothing goes further than this anymore: text.html.basic > source.php.embedded.html. Is it possible the upgrade corrupted something?
Thank you!
ryan
On 21. Nov 2006, at 19:45, Ryan Masuga wrote:
I am using HTML for my PHP pages. I never selected PHP before - never had to. The problem is that after I upgraded, all the PHP in my HTML is red - there is no syntax coloring of the PHP at all - but I had this working before.
There is no syntax coloring, but ti is read?
Try http://macromates.com/wiki/Troubleshooting/RevertToDefaultBundles
And be sure to then use HTML for your files.
Allan -
Thank you so much, that worked. I copied all my bundles out, and reverted to default bundles. Then I added the bundles back in that I really needed (all my snippets, etc.) and restarted TextMate. Now my PHP and HTML is colored correctly at the same time (in HTML mode), and the scope selector seems to be working correctly again. Excellent!
ryan
On Nov 21, 2006, at 2:38 PM, Allan Odgaard wrote:
On 21. Nov 2006, at 19:45, Ryan Masuga wrote:
I am using HTML for my PHP pages. I never selected PHP before - never had to. The problem is that after I upgraded, all the PHP in my HTML is red - there is no syntax coloring of the PHP at all - but I had this working before.
There is no syntax coloring, but ti is read?
Try http://macromates.com/wiki/Troubleshooting/RevertToDefaultBundles
And be sure to then use HTML for your files.
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
Yeah I got it working now too. I had a HTML bundle in my ~/Application Support/TextMate/Bundles It has some personal snippets I added on and some changes (tmDelta) to the template files. But it also included a Syntax folder with a HTML syntax file. But I don't remember changing the HTML syntax ever? Don't know how it go there. Anyway I deleted the Syntax folder with the underlying HTML syntax file, and that solved it.
Thanks, Brian
On 11/21/06, Ryan Masuga ryan@masugadesign.com wrote:
Allan -
Thank you so much, that worked. I copied all my bundles out, and reverted to default bundles. Then I added the bundles back in that I really needed (all my snippets, etc.) and restarted TextMate. Now my PHP and HTML is colored correctly at the same time (in HTML mode), and the scope selector seems to be working correctly again. Excellent!
ryan
On Nov 21, 2006, at 2:38 PM, Allan Odgaard wrote:
On 21. Nov 2006, at 19:45, Ryan Masuga wrote:
I am using HTML for my PHP pages. I never selected PHP before - never had to. The problem is that after I upgraded, all the PHP in my HTML is red - there is no syntax coloring of the PHP at all - but I had this working before.
There is no syntax coloring, but ti is read?
Try http://macromates.com/wiki/Troubleshooting/RevertToDefaultBundles
And be sure to then use HTML for your files.
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
Well I'm getting the same sort of problem I've included screen shots of what a .php document looks like when classified as both HTML and as PHP.
In one case the HTML is colored properly and in the other the PHP is, but we can't seem to get both?
-Brian
On 11/21/06, Allan Odgaard throw-away-1@macromates.com wrote:
On 21. Nov 2006, at 16:45, Ryan Masuga wrote:
I hadn't upgraded Textmate in quite a while and just recently did so (I think I had 1.2, and I'm at 1.5 now - needed to do this to get the GetBundle Bundle to work) and I noticed that the HTML (PHP) language selection is gone - now either HTML or PHP is all red, rather than both languages being colored correctly at the same time. I was reading a little in the lists and see that PHP is more of a 'top level' language now, but for those of us who have pages filled with HTML and PHP I'd love to see these files colored that way they were before.
Use HTML for those pages, it has always been like that. The PHP grammar is to be included by other grammars, not used stand-alone. I only partially made the possible because regardless of my efforts, people kept selecting it for their HTML files with PHP, and then sent me bug reports about e.g. treating stuff outside <?php … ?> as code etc.
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
I was able to fix this by opening the PHP and HTML language grammars in the Bundle Editor, and clicking "Test".
- Alex
On Nov 21, 2006, at 11:11 AM, Brian Landau wrote:
Well I'm getting the same sort of problem I've included screen shots of what a .php document looks like when classified as both HTML and as PHP.
In one case the HTML is colored properly and in the other the PHP is, but we can't seem to get both?
-Brian
On 11/21/06, Allan Odgaard throw-away-1@macromates.com wrote: On 21. Nov 2006, at 16:45, Ryan Masuga wrote:
I hadn't upgraded Textmate in quite a while and just recently did so (I think I had 1.2, and I'm at 1.5 now - needed to do this to get the GetBundle Bundle to work) and I noticed that the HTML (PHP) language selection is gone - now either HTML or PHP is all red, rather than both languages being colored correctly at the same time. I was reading a little in the lists and see that PHP is more of a 'top level' language now, but for those of us who have pages filled with HTML and PHP I'd love to see these files colored that way they were before.
Use HTML for those pages, it has always been like that. The PHP grammar is to be included by other grammars, not used stand-alone. I only partially made the possible because regardless of my efforts, people kept selecting it for their HTML files with PHP, and then sent me bug reports about e.g. treating stuff outside <?php … ?> as code etc.
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
<HTMLview.jpg> <PHPview.jpg>
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
That didn't work for me, and I didn't really expect it to. What I want is the PHP sections to not only have that blue background but also the syntax coloring that they would have if I selected PHP as the language scope.
-Brian
On 11/21/06, Alex Ross alex.j.ross@gmail.com wrote:
I was able to fix this by opening the PHP and HTML language grammars in the Bundle Editor, and clicking "Test".
- Alex
On Nov 21, 2006, at 11:11 AM, Brian Landau wrote:
Well I'm getting the same sort of problem I've included screen shots of what a .php document looks like when classified as both HTML and as PHP.
In one case the HTML is colored properly and in the other the PHP is, but we can't seem to get both?
-Brian
On 11/21/06, Allan Odgaard throw-away-1@macromates.com wrote: On 21. Nov 2006, at 16:45, Ryan Masuga wrote:
I hadn't upgraded Textmate in quite a while and just recently did so (I think I had 1.2, and I'm at 1.5 now - needed to do this to get the GetBundle Bundle to work) and I noticed that the HTML (PHP) language selection is gone - now either HTML or PHP is all red, rather than both languages being colored correctly at the same time. I was reading a little in the lists and see that PHP is more of a 'top level' language now, but for those of us who have pages filled with HTML and PHP I'd love to see these files colored that way they were before.
Use HTML for those pages, it has always been like that. The PHP grammar is to be included by other grammars, not used stand-alone. I only partially made the possible because regardless of my efforts, people kept selecting it for their HTML files with PHP, and then sent me bug reports about e.g. treating stuff outside <?php … ?> as code etc.
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
<HTMLview.jpg> <PHPview.jpg>
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