cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

HowCanIForceTheNetBeans6.0IDEToOpenAn.htmlFileInThePHPPluginEditor

How can I force the NetBeans 6.0 IDE to open an *.html file in the PHP Plugin editor?

The current version of the PHP Plugin supports files with the following extensions: php, php5, phtml, inc. As a temporary solution, proceed as follows:

  1. Choose Tools -> Options -> Advance Options -> IDE Configuration -> System -> File Types
  2. Over PHP.xml invoke the context menu and choose Open. 
  3. Close the Options dialog box. The PHP.xml file opens in the editor. 
  4. Add the hmtl extension to the PHP.xml file, save the PHP.xml file, and restart the IDE. 

From now on, any *.html file is treated as a a PHP file.