pulse00 / Twig-Eclipse-Plugin

Eclipse plugin for the twig templating language.
twig.dubture.com
MIT License
107 stars 24 forks source link

Twig-Highlighting inside Javascript #9

Closed schmittjoh closed 13 years ago

schmittjoh commented 13 years ago

It seems like highlighting doesn't work when inside a <script> tag. Some example code:

{% block javascripts %}
    {{ parent() }}

    <script language="javascript" type="text/javascript">
        init_profile({{ path("latest_posts")|json_encode|raw }});
    </script>
{% endblock %}

In the above example {{ path("latest_posts")|json_encode|raw }} is not highlighted as Twig code.

pulse00 commented 13 years ago

good catch, thanks. i'll add it to the grammar.

pulse00 commented 13 years ago

please update to the current version, you should get highlighting in javascript tags there.

schmittjoh commented 13 years ago

Yes works, thanks