NetBeans - Highlights html syntax with twig files

I find it difficult to figure out how to highlight my html syntax NetBeans IDE 7.1.1when I open the file with the extension twig.

I tried installing php symfony framework pluginfor NetBeans, but nothing has changed.

+5
source share
3 answers

You do not need to install any plugin.

You just need to add a new file extension twinto

NetBeans -> Miscellaneous -> Options -> Files

And then you need to associate twig extensionwith HTML.

The result will be as follows:

enter image description here

+3
source

Closest you can add the extension twigto the tab Tools->Options->Miscellaneous->Filesand set MIME as TPL (text/x-tpl). However, this editor will not show html errors.

+1

NetBeans 7.0 ( ), , , NetBeans 7.2.1.

PHP Twig:    http://plugins.netbeans.org/plugin/37069/php-twig

Installation: 0. Download the plugin. 1. Menu> Tools> Plugins> Download [find and install it] 2. Activate it. Menu> Tools> Plugins> Installed [check the box and activate] 3. Restart NetBeans. (Close and open again) 4. Enjoy it;)

+1
source

All Articles