PHPStorm 8 Not Formating HTML Code
Hi,
I am trying to format HTML code using Ctrl+Alt+L, after selected "Text" it does nothing to my html code.
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Brand</a>
</div>
</div>
</nav>
This is the code i am talking about.
If i navigate to Settings > Code Style >HTML and directly include this code into there. It will properly format it, so i don't know why its not working when i use the shortcut on selected text.
Please sign in to leave a comment.
What file is it? Is it a 'plain' HTML, or HTML embedded in php, or?
It's a .php file but HTML inside of it.
There must be a way to format it still? If i highlight the specific code?
please see https://youtrack.jetbrains.com/issue/WI-17786
Our code formatting engine works badly with multi-language mix (PHP+HTML, for example) within the same file.
Any progress on the problem ?, it still exists in 8.0.3 version.