netbeans - 如何在 NetBeans 中更改 PHP Smarty 插件模板文件扩展名?

标签 netbeans smarty netbeans-6.9 netbeans-plugins

NetBeans 对 *.tpl 文件使用 PHP Smarty Framework 插件。是否可以将其更改为*.htm?我使用 smarty 模板的 .htm 扩展名,并希望从这个 PHP Smarty 插件中受益。我怎样才能做到这一点?

最佳答案

在 NetBeans 中(安装了 PHP Smarty Framework 插件):

  1. 点击工具菜单,然后选择选项
  2. 单击“选项”对话框顶部图标栏右侧的“其他”。
  3. 点击"file"选项卡。
  4. 文件扩展名组合框字段中,选择htm
  5. 关联文件类型 (MIME) 字段中,将值更改为 TPL(文本/tpl)
  6. 点击确定

要恢复原始行为,请重复上述步骤,但在步骤 5 中选择 HTML 文件 (text/html)

关于netbeans - 如何在 NetBeans 中更改 PHP Smarty 插件模板文件扩展名?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4353069/

相关文章:

c++ - ifstream 不创建和打开输出文件

netbeans - JPanel 的标题边框问题

java - 为什么 "GLProfile.GetDefault()"在 NetBeans 中运行时有效,但在运行 Jar 时无效

ruby - Ruby 1.9 的 Netbeans Ruby 语法突出显示?

java - 数组的挑战

java - java中的dom文档字符串

php - prestashop 中的 Smarty 分配不分配数组

php - 刷新后保留选定的选项(表单/选择)

postgresql - 使用 Netbeans 6.9.1 从 postgresql 9.0.1 数据库创建实体