Twig-netbeans
Twig-netbeans copied to clipboard
Incorrect HTML formatting since version 1.3
Since I installed version 1.3, I'm getting incorrect HTML formatting in *.html.twig files.
In following code, it's incorrectly formatting HTML tags, as if it thought Twig tags are HTML too.
<nav>
{% if app.security.isGranted('IS_AUTHENTICATED_FULLY') %}
<a href="#">Edit</a> <a href="{{ path('logout') }}">Logout</a>
{% else %}
<a href="{{ path('login') }}">Login</a> <a href="{{ path('register') }}">Register</a>
{% endif %}
<a href="">Some other links</a>
</nav>
Is this the whole file? I can't see any format errors.
It isn't whole file, just a portion of it. <nav>
and </nav>
are differently indented and <a href=...
is indented one more tab to the right side than it was supposed to. This happens only when I have twig code in between. When I remove it and format the file again, it works ok.
Ah, okay, I thought you're talking about the colouring. The wrong HTML indenting is a known issue and I hope I'll find a solution during the next days.
have u find a solution??
@blogsh Have you find a soluction for this issue?
Any update on this?
any updates? this is a very old issue...
Also still looking for a solution.
Have u find a solution?? The Netbeans 8.0 is still the same error