Twig-netbeans icon indicating copy to clipboard operation
Twig-netbeans copied to clipboard

Incorrect HTML formatting since version 1.3

Open ondrowan opened this issue 13 years ago • 9 comments

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>

ondrowan avatar Jun 26 '11 13:06 ondrowan

Is this the whole file? I can't see any format errors.

sebhoerl avatar Jun 28 '11 16:06 sebhoerl

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.

ondrowan avatar Jun 28 '11 17:06 ondrowan

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.

sebhoerl avatar Jun 28 '11 18:06 sebhoerl

have u find a solution??

Raulken avatar Nov 11 '12 19:11 Raulken

@blogsh Have you find a soluction for this issue?

micayael avatar Mar 15 '13 20:03 micayael

Any update on this?

saravpreet avatar Aug 03 '13 05:08 saravpreet

any updates? this is a very old issue...

myknbani avatar Nov 03 '13 04:11 myknbani

Also still looking for a solution.

jmauerhan avatar Dec 09 '13 15:12 jmauerhan

Have u find a solution?? The Netbeans 8.0 is still the same error

GwtLabs avatar Apr 02 '14 09:04 GwtLabs