I have this code :
section.append('<div class="thumbnail">'
+ '<img src="public/images/thumb100x200.png">'
+ '<span class="title">' + i + '</span>'
+ '</div>');
When I format this code in eclipse it removes line breaks and the results becomes like this:
section.append('<div class="thumbnail">' + '<img src="public/images/thumb100x200.png">' + '<span class="title">' + i + '</span>' + '</div>');
How can I make eclipse not remove the line breaks when joining strings like this?
I have already looked for a setting under Window->Preferences->Javascript->Editor, but can’t find anything that fixes this
If you go to Window->Preferences->Javascript->Editor you will find all the autoformatting rules. Beyond that, good luck!