Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在基于Savant3模板系统的 PHP Web 应用程序中使用 netbeans 7.4。
但是,当我将 PHP 代码放入.tpl文件时,它不被视为内联 PHP 代码。它显示错误,说明"Unexpected character(s) ? found Unexpected token LESS found"我在哪里放置 PHP 开始标记 ()。同时,它不会突出显示 html 属性中的 PHP 代码。这两个错误都在我上传的图片中突出显示。
.tpl
"Unexpected character(s) ? found Unexpected token LESS found"
我该如何解决这个问题?谢谢!
转到工具 -> 选项 -> 其他 -> 文件
在File Extension下拉列表中选择tpl
File Extension
tpl
在Associate File Type (MIME)下拉列表中选择text/x-php5
Associate File Type (MIME)
text/x-php5