Reputation: 1
This is how it currently looks:
<div ng-controller="AppCtrl" layout="column" style="height: 500px;" ng-cloak>
<section layout="row" flex>
<md-sidenav class="md-sidenav-left" md-component-id="left"
md-is-locked-open="$mdMedia('gt-md')" md-whiteframe="4">
<md-toolbar class="md-theme-indigo">
<h1 class="md-toolbar-tools">Sidenav Left</h1>
</md-toolbar> <md-content layout-padding ng-controller="LeftCtrl"> <md-button
ng-click="close()" class="md-primary" hide-gt-md> Close
Sidenav Left </md-button>
It is crap. I want properly indented XML. Around so:
<div ng-controller="AppCtrl" layout="column" style="height: 500px;" ng-cloak>
<section layout="row" flex>
<md-sidenav class="md-sidenav-left" md-component-id="left"
md-is-locked-open="$mdMedia('gt-md')" md-whiteframe="4">
<md-toolbar class="md-theme-indigo">
<h1 class="md-toolbar-tools">Sidenav Left</h1>
</md-toolbar>
<md-content layout-padding ng-controller="LeftCtrl">
<md-button ng-click="close()" class="md-primary" hide-gt-md>
Close Sidenav Left
</md-button>
This is how my relevant settings look:
What to do? (I've already checked that "Structured Text Editors" link, there seems nothing relevant to exist.)
Yes, I know, that the added whitespace can cause little troubles in the inline positioned block elements, but I can live with it.
I opened the HTML file with the XML editor, too, but it behaves exactly the same.
Upvotes: 0
Views: 1556
Reputation: 1
The obvious solution is to use the XML Editor also for HTML formatting.
Unfortunately, Eclipse doesn't really want us to set this, but it can be forced to do that.
The solution works in current stable version of eclipse, v4.15. Around until Kepler simply setting the file associations was enough.
Upvotes: 1