phtml文件中的volt(twig)和php的Netbeans语法突出显示 [英] Netbeans syntax highlighting for volt (twig) and php in phtml files
问题描述
我正在Netbeans中与Phalcon合作.我看到我可以使用树枝插件对伏特文件进行模板突出显示.我正在使用phtml文件,并希望突出显示伏特(twig)和php.这可能吗?
I'm working with Phalcon in Netbeans. I see I can use twig plugin for template highlighting for volt files. I am using phtml files and want highlighting for volt (twig) and php. Is this possible?
也相关-Netbeans不断复制我的phtml视图文件,并向其添加扩展名.phtml.php.我该如何解决?
Also related - Netbeans keeps duplicating my phtml view files and adding the extention .phtml.php to them. How can I fix that?
推荐答案
转到工具"->选项"->其他"->文件" 右键单击文件扩展名",然后按创建"并在其中键入"volt". 之后,在关联文件类型(MIME)"中选择"TWIG(text/x-twig)". 重新启动IDE.
Go to Tools->Options->Miscellaneous->Files right to "File Extensions" press "create" and type there "volt". After that in "Associated File Type (MIME)" choose "TWIG (text/x-twig)". Restart IDE.
这篇关于phtml文件中的volt(twig)和php的Netbeans语法突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!