phtml 文件中 volt (twig) 和 php 的 Netbeans 语法高亮显示 [英] Netbeans syntax highlighting for volt (twig) and php in phtml files

查看:25
本文介绍了phtml 文件中 volt (twig) 和 php 的 Netbeans 语法高亮显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Netbeans 中使用 Phalcon.我看到我可以使用 twig 插件来突出显示 volt 文件的模板.我正在使用 phtml 文件并希望突出显示 volt (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?

推荐答案

转到工具->选项->杂项->文件对文件扩展名"按创建"并在此处键入伏特".之后在关联文件类型 (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屋!

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