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>
</MIME-resolver>
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.
A comment in that file says "when modifying this list also update the PHPIndexer.INDEXABLE_EXTENSIONS". Where would we find this file?
Hi Lee,
where do you see the message? It's a developer comment and it shouldn't be visible anywhere in the ui.
Thanks,
Petr
jkjk