How to deal with mako/django/etc templates in webstorm
Hello,
We are several co-worker who use PyCharm, Webstorm, ... on python/javascript project. When we use PyCharm, Mako/Django/... templates are recognize (syntax, autocomplete, etc). But in WebStorm, Mako templates are recognize as simple HTML file (syntax error on mako tags for example).
How to enable/add mako template management in WebStorm ? Thank's.
Please sign in to leave a comment.
There is no way to enable Mako/Django templates support in WebStorm.
You can try using textmate bundles (https://github.com/marconi/mako-tmbundle, for example) for basic highlighting. See http://blog.jetbrains.com/phpstorm/2013/05/textmate-bundles-in-phpstorm/ and http://stackoverflow.com/a/16451778/2000323 for more info
If this doesn't work for you, I can only suggest suppressing the error highlighting for your files to get rid of syntax errors. This can be done using Hector icon in the lower right corner: open your file in editor, click the Hector icon and then move the slider to change the Highlighting level to
None. See https://www.jetbrains.com/help/webstorm/2017.2/changing-highlighting-level-for-the-current-file.html. You will likely need to reopen the project to get the highlighting updated.Okay thank's for this informations.
Bastien.