Why doesn't NetBeans recognize Django syntax?

I installed 3 python plugins from tools -> plugins -> available plugins -> search for "python", and then restarted Netbeans. However, when I open the file with the following contents:

{% block foo %}

   // hi

{% endblock %}

placing my cursor in the opening block tag does not cause the selection of the end block tag. This works for other languages, such as matching PHP matching or matching HTML tags, how can I make this parsing work for Django. I want the same tag types to coincide with tags / warnings about code hints / errors.

I tried changing the extension of the template from .html to .djt and .dj to try to get Netbans to recognize the file as a django template, but no luck.

+3
source share
1 answer

Unable to leave this unanswered ... Since Python! = Django

Django is a framework and it does not come with python, so netbeans does not support Django template syntax by default, this is normal.

+4
source

All Articles