如何在 NetBeans 中添加带有点 (blade.php) 的自定义文件扩展名?

2021-12-26 00:00:00 php laravel netbeans blade

我需要指定一个自定义扩展名,以便在 netbeans 中识别为 twig 文件('blade.php' 作为 'twig' 文件并适当地给我语法高亮和代码完成).使用文件关联选项的问题(在 Tools > Options > Miscellaneous > Files 中)是它不会让我添加 '.'在诸如blade.php 之类的扩展中,它可以与诸如php、html、css 等单字扩展一起使用.

如果有人能帮助我,我将不胜感激!

解决方案

正如我所见,问题更以NetBeans 为中心,所以我还建议您向 NetBeans 提交错误报告社区.

  • NetBeans 论坛.
  • NetBeans 错误跟踪器.

也许将来他们可以解决这个问题.您还可以链接该问题,以便他们查看用户的反应.

I need to assign a custom extension to be recognized as a twig file in netbeans ('blade.php' as 'twig' file and give me syntax highlighting and code completion appropriately). The problem with using the File association option (in Tools > Options > Miscellaneous > Files) is that it won't let me add '.' in extension like blade.php, it works with single worded extensions like php, html, css etc.

Will be grateful if anybody can help me with this!

解决方案

As I can see the problem is more NetBeans-centric, so I would also suggest you to file a bug report to the NetBeans community.

  • The NetBeans forums.
  • The NetBeans bug tracker.

Maybe in the future they can fix that issue. You may also link that question so they can see the user reactions.

相关文章