Alex Rivera | Logout

PyCharm: Forcing Django Template Syntax Highligting

Asked 2012-01-16T13:26:20.583
34

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.

Edit
Report

1 Answer

64

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

answered 2012-01-16T13:39:48.803

Your Answer