Search code examples
pythondjangopycharm

PyCharm: Forcing Django Template Syntax Highligting


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.


Solution

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