Question

I've just installed PyCharm, and have opened an existing project with multiple apps. When I open django templates, they are highlighted as if plain HTML, i.e. {% block %} elements and {{variable}} references are not treated specially.

Is there any way I can force it to use the django template syntax highlighter for these files? Or am I doing something wrong?

The project is configured as a django project.

Was it helpful?

Solution

File » Settings » Template language, do you have Template language setting set to django?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top