如何在NetBeans中更改PHP Smarty插件模板文件扩展名? [英] How to change PHP Smarty plugin template file extension in NetBeans?
本文介绍了如何在NetBeans中更改PHP Smarty插件模板文件扩展名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
NetBeans对* .tpl文件使用PHP Smarty Framework插件.是否可以将其更改为* .htm?我将.htm扩展名用于smarty模板,并希望从此PHP Smarty插件中受益.我该怎么办?
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?
推荐答案
在NetBeans中(安装了PHP Smarty Framework插件):
In NetBeans (with the PHP Smarty Framework plugin installed):
- 点击工具菜单,然后选择选项
- 单击选项"对话框顶部图标栏右侧的"其他".
- 单击文件标签.
- 在文件扩展名组合框中,选择 htm .
- 在"关联文件类型(MIME)"字段中,将值更改为 TPL(文本/tpl).
- 点击确定
- 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
要恢复原始行为,请重复上述步骤,但在步骤5中选择 HTML文件(text/html).
To restore the original behavior, repeat the above steps, except select HTML Files (text/html) in step 5.
这篇关于如何在NetBeans中更改PHP Smarty插件模板文件扩展名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文