I am having trouble figuring out how to highlight my html syntax in NetBeans IDE 7.1.1 when I open file having twig extension.
I tried to install the php symfony framework plugin for NetBeans but nothing changed.
You do not need to install any plugin.
You need just to add a new file extension twig in
NetBeans → Miscellaneous → Options → Files
And then you need to associate the twig extension to HTML.
The result will be the following:

Closest thing you can do is adding twig extension in Tools->Options->Miscellaneous->Files tab and set MIME as TPL (text/x-tpl). By doing this editor will not show html errors.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With