This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Please implement a better formatting of TWIG with html. Right now if we use usual shortcut for formatting, we'll get a bad formatting because the plugin doesn't understand where the html ends and Twig starts and vice -versa.
Reproducible. I used default layout file from Symfony 2 framework. Twig file is formatted ok by default, but when you invoke Source->Format (or just Alt + Shift + F), all HTML elements are bad formatted. Before format: {% block content_header %} <ul id="menu"> {% block content_header_more %} <li><a href="{{ path('_demo') }}">Demo Home</a></li> {% endblock %} </ul> {% endblock %} After format: {% block content_header %} <ul id="menu"> {% block content_header_more %} <li><a href="{{ path('_demo') }}">Demo Home</a></li> {% endblock %} </ul> {% endblock %}
*** This bug has been marked as a duplicate of bug 209026 ***