3 ms·
I know it's a hack, but I always wrote multi-line strings as a function with a comment. Super simple case: var multiline = (function() {/* I am a multi- lin
by vkjv 12y ago
I know it's a hack, but I always wrote multi-line strings as a function with a comment. Super simple case:
var multiline = (function() {/*
I am
a multi-
line string.
*/}).toString().slice(16, -4);
Couple this with a proper parser for the syntax and a template library and it has served me well enough.