如何在 NetBeans 中更改 PHP Smarty 插件模板文件扩展名? [英] How to change PHP Smarty plugin template file extension in NetBeans?
本文介绍了如何在 NetBeans 中更改 PHP Smarty 插件模板文件扩展名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
NetBeans 对 *.tpl 文件使用 PHP Smarty 框架插件.是否可以将其更改为 *.htm?我为 smarty 模板使用 .htm 扩展名,并希望从这个 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 (text/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 Files (text/html).
To restore the original behavior, repeat the above steps, except select HTML Files (text/html) in step 5.
这篇关于如何在 NetBeans 中更改 PHP Smarty 插件模板文件扩展名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文