简体   繁体   English

Netbeans中的Symfony Twig模板

[英]Symfony Twig Templates in Netbeans

I am new to Symfony and am trying to create a Twig template in NetBeans. 我是Symfony的新手,正在尝试在NetBeans中创建Twig模板。 However, by default NetBeans doesn't support the file extension .twig . 但是,默认情况下,NetBeans不支持文件扩展名.twig I tried to google but couldn't find any answer. 我试图用Google搜索,但找不到任何答案。 I saw some Twig NetNeans plugins in my Google search result but they didn't say whether they support the .twig file extension so I decided not to download them. 我在Google搜索结果中看到了一些Twig NetNeans插件,但是他们没有说是否支持.twig文件扩展名,所以我决定不下载它们。

Can someone please point me in the right direction. 有人能指出我正确的方向吗?

I use NetBeans 8.0.2 and I can edit Twig files correctly using the "Twig Templates" plugin. 我使用NetBeans 8.0.2,并且可以使用“ Twig模板”插件正确编辑Twig文件。 It's a core plugin, in the "PHP" category. 它是“ PHP”类别中的核心插件。 You can enable it via Tools -> Plugins. 您可以通过工具->插件启用它。

Note: since it's aa core plugin, you don't find it in "Available Plugins", but in "Installed Plugins". 注意:由于它是一个核心插件,因此您不会在“可用插件”中找到它,而在“已安装插件”中找到了它。 Being a core plugin, it's already installed, you probably only have to "Activate" it. 作为一个核心插件,它已经安装好了,您可能只需要“激活”它即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM