views:

817

answers:

2

Hi,

Is there any way to tell Netbeans to highlight PHP code in HTML files? I am using Zend Framework, where a lot of PHP code is included in the view files.

A: 

Hi,

When using netbeans 6.7 (beta ; I've not updated for some time), PHP code inside <?php ... ?> tags in .phtml files is highlighted, the same way as in .php files -- at least, that's the case right now for me

And I don't remember setting any option to activate that behaviour.
(And I'm trying this on a Zend Framework project)

Are you views scripts using .phtml (note the 'p') as extension (which the "standard", using Zend Framework), and not .html ?

If you are using .html as file extension for your views, that might be the problem :-(
And I don't find any way to say "I wan't PHP syntax hightlighting for this file extension"...

Pascal MARTIN
+3  A: 

Thanks, but i have found the solutions.

You can set in the Options Screen - Misc - Files. The Type associated with .phtml. After switching it to php it works.

ArneRie
+1 : Oh, I really missed this one :-( Thanks for the info ;-)
Pascal MARTIN