I am wondering if this is possible and if so how, I have a long string and for maintainability and readability purposes I want to put newlines into the code like so:
slices +=
'<div
class="'+settings.sliceClass+'"
style="
width:' + slicewidth + 'px;
height:' + sliceheight + 'px;
left:' + left + 'px;
top:' + top + 'px;
"><img src="'+slide.properties.src+'"
style="
position: relative;
left:' + -left + 'px;
top:' + -top + 'px;
width:' + Math.round(slide.properties.image.width * slide.properties.scale.width) + 'px;
height:' + Math.round(slide.properties.image.height * slide.properties.scale.height) + 'px;
">
</img></div>'
);
I am not expecting these newlines to appear in the HTML output.
However this returns a SyntaxError: Unexpected EOF.
Is there anyway to do this?