Django Syntax Highlighting not working in templates
已回答
Hi all,
I am having a very strange issue. After working for a while, Pycharm has stopped highlighting django syntax.
I have django selected as template language, and django support is enabled. I am not sure what else I can check.
Any suggestions?
Thanks in advanced,
Yotam
请先登录再写评论。
Hi, make sure no template parent folders are marked as Resource Roots in the project tree. This action suppresses tempate highlighting:
WHAT THE... why does it work like that?! (Working btw if wasn't obvious...)
Can someone from the intellij please elaborate on the reason for such behavior?
I've had the same issue myself and the reason for having the parent marked as resource root was so that I get the autocompletion feature on resources in javascript.
Thanks to that I've got the IDE to be helpful in sync with the way I have my js bundler set-up.
Hello, i have the same problem, Pycharm has stopped highlighting syntax in django templates
Pavel Karateev Can you please respond? I've bumped into this again after all those years…