问题
NetBeans uses PHP Smarty Framework plugin for *.tpl files. Is it possible to change this to *.htm? I use .htm extension for smarty templates and would like to benefit from this PHP Smarty plugin. How can I do that?
回答1:
In NetBeans (with the PHP Smarty Framework plugin installed):
- Click on the Tools menu, and select Options
- Click on Miscellaneous located toward the right side of the top icon bar of the Options dialog.
- Click on the Files tab.
- In the File Extension combo-box field, select htm.
- In the Associated File Type (MIME) field, change the value to TPL (text/tpl).
- Click OK
To restore the original behavior, repeat the above steps, except select HTML Files (text/html) in step 5.
回答2:
I found http://wiki.netbeans.org/FaqCplusPlusDefaultExtensions , unfortunately it's only for C/C++ .
The php-tab should have something like it as well...
来源:https://stackoverflow.com/questions/4353069/how-to-change-php-smarty-plugin-template-file-extension-in-netbeans