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.
我希望能够在 Phalcon 的模板引擎 Volt 的 PHPStorm 中突出显示语法。
有没有办法这样做?
在 PHPStorm 中,单击File -> Settings
File -> Settings
在选项的左侧单击Editor -> File Types
Editor -> File Types
在右侧显示的列表中,向下滚动并选择Twig
Twig
在底部面板中,单击+按钮添加新的通配符并添加
+
*.volt
单击确定,然后再次单击确定。
右键单击.volt项目选项卡中的文件。点击associate with a file type。选择twig。
.volt
associate with a file type
twig