Sometimes people ask me for an advice, how to set up NetBeans to treat some file with certain extension as PHP file. For example .phpt files are test files for testing PHP runtime, which contains PHP code and NetBeans Early Access treats these files only as a text files.
There are steps how to do it:
<MIME-resolver><file><ext name="php"/><ext name="php3"/><ext name="php4"/><ext name="php5"/> <ext name="inc"/><ext name="phpt"/><resolver mime="text/x-php5"/></file>
I know, this is not so simple as should be, but NetBeans core engineers are working on simplifying the UI. I hope it will be available in
NetBeans 6.5 and the specification you can see here.