如何在NetBeans中更改PHP Smarty插件模板文件扩展名? [英] How to change PHP Smarty plugin template file extension in NetBeans?

查看:101
本文介绍了如何在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):

  1. 点击工具菜单,然后选择选项
  2. 单击选项"对话框顶部图标栏右侧的"其他".
  3. 单击文件标签.
  4. 文件扩展名组合框中,选择 htm .
  5. 在"关联文件类型(MIME)"字段中,将值更改为 TPL(文本/tpl).
  6. 点击确定
  1. Click on the Tools menu, and select Options
  2. Click on Miscellaneous located toward the right side of the top icon bar of the Options dialog.
  3. Click on the Files tab.
  4. In the File Extension combo-box field, select htm.
  5. In the Associated File Type (MIME) field, change the value to TPL (text/tpl).
  6. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆