How do I have 2 different indentations in one file?

I have a file (.tpl) and I need two different indentations in one single file.

HTML in the file will have 2 spaces indentations and javascripts within the file will have 4 spaces indentations. Any idea on how this can be achieved?

1 comment
Comment actions Permalink

Please see https://youtrack.jetbrains.com/issue/WI-17786#comment=27-811782:

Currently the platform doesn't support neither a mix of indentations in one line nor in one file. And it's not a small change to fix it. Like Michael correctly pointed out above it also affects the way how the editor should work using one indent in some places and another indent in other places. It's not capable of doing so at the moment.



Related ticket: https://youtrack.jetbrains.com/issue/WEB-9146

0

Please sign in to leave a comment.