去
Netbeans tools options Miscellaneous Files
现在找到行 file extension 选择 tpl 。然后 的 最重要的 强> 选择 Associated File Type (MIME) 如 text/x-php5 。保存后,重新启动netbeans。
file extension
tpl
Associated File Type (MIME)
text/x-php5
如果您正在寻找如何让Netbeans识别智能模板,那么现在有一个Smarty模板插件应该更有用: http://plugins.netbeans.org/plugin/37379/php-smarty
在NetBeans 8.XX中,这是通过转到 的 NetBeans>偏好>其他>档 强> 。在排 的 文件扩展名 强> 点击 的 新 强> 并输入没有圆点的新文件扩展名(例如: TPL )。选择 的 关联文件类型(MIME) 强> 并单击 的 应用 强> 。
让我猜一下,对于Smarty模板?我做了以下