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

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

  1. 点击工具菜单,然后选择选项
  2. 点击位于选项"对话框顶部图标栏右侧的杂项.
  3. 点击文件标签.
  4. 文件扩展名组合框字段中,选择htm.
  5. 关联文件类型 (MIME) 字段中,将值更改为 TPL (text/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 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屋!

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