扩展名为.tpl的Php文件在Netbeans中不起作用


Php File with .tpl Extension not Working in Netbeans

我正在做一个opencart项目。在opencart视图文件的扩展名为.tpl。opencart是一个PHP CMS。但在我的netbeans项目中,编辑器无法识别.tpl文件。甚至标签没有正确显示。

转到

Netbeans
    tools
     options
      Miscellaneous
        Files

现在找到行file extension,选择tpl。那么最重要的是选择Associated File Type (MIME)作为text/x-php5。保存后,重新启动netbeans。

我通过转到NetBeans>options>Miscellaneous>Files来实现。在"文件扩展名"行中,选择tpl。选择关联文件类型(MIME)作为text/x-php5,然后单击应用。然后重新启动Netbeans

-You can do this if you follow these steps:    
 1.Open Tools and Select Options.<br>
 2.Select Miscellaneous tab.<br>
 3.Select Files sub-tab thing.<br>
 4.Click on New file extension and enter tpl.<br>
 5.Select the mime type.<br>
 6.Click OK. Done!<br>
 7.(Restart of Netbeans may be required to see the actual changes)