Netbeans syntax highlighting for volt (twig) and php in phtml files(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 语法高亮显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:phtml 文件中 volt (twig) 和 php 的 Netbeans 语法高亮显示
- 正确分离 PHP 中的逻辑/样式 2021-01-01
- SoapClient 设置自定义 HTTP Header 2021-01-01
- 如何定位 php.ini 文件 (xampp) 2022-01-01
- 没有作曲家的 PSR4 自动加载 2022-01-01
- Mod使用GET变量将子域重写为PHP 2021-01-01
- 从 PHP 中的输入表单获取日期 2022-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- 带有通配符的 Laravel 验证器 2021-01-01
- PHP Count 布尔数组中真值的数量 2021-01-01
- Laravel 仓库 2022-01-01