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.

<form>

     <div>testing</div>

</form>

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

{#<form>#}

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

{#</form>#}

But it should be

<!--<form>-->

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

<!--</form>-->

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

I just had this issue using Angular2.

 

Preferences > Languages & Frameworks > Python Template Languages.

Set Template language to "NONE"

 

 

0

Please sign in to leave a comment.