Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NetBeans - highlight html syntax with twig files

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.

like image 273
underscore666 Avatar asked Apr 24 '12 21:04

underscore666


2 Answers

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:

Coloured code screenshot

like image 120
antonjs Avatar answered Sep 24 '22 00:09

antonjs


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.

like image 20
Mun Mun Das Avatar answered Sep 22 '22 00:09

Mun Mun Das