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 PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 如何替换eregi() 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01