Right now this looks awful if I use ES2015 templates:
let template ='<div data-value="${text}" class="label label-success"> ${text} <span data-nr="${nr}" class="background-switch glyphicon glyphicon-remove" style="border-radius:50%;margin-left: 2px; padding: 3px;" aria-hidden="true"> </span> </div>';
Is there a way to disable the default indent settings for a specific region? Or is there another way to format ES6 templates correctly?
javascript emacs
rogergl
source share