Commenting html files with django template language

I have my template language set to django but I still want the commenting of html files with the hotkey to be correct. Is there a way to make this happen?

For example if I have an html file name test.html with the following.




When I use the hotkey for commenting code I get these results.


{#    <div>teting</div>#}


But it should be


<!--    <div>teting</div>-->


According to this thread "PyCharm treats HTML as Django template files if the Django support is enabled". That's not really what I want.
1 comment

I just had this issue using Angular2.


Preferences > Languages & Frameworks > Python Template Languages.

Set Template language to "NONE"




Please sign in to leave a comment.