Skip to content

Instantly share code, notes, and snippets.

@PAEz
Last active April 4, 2017 22:38
Show Gist options
  • Save PAEz/8211784 to your computer and use it in GitHub Desktop.
Save PAEz/8211784 to your computer and use it in GitHub Desktop.
Doing a multi line string
var string=(function () {
/*
Bleh Bleh
Meh
Huh
Works in FF and Chrome atleast, havent tried anywhere else
*/
}).toString().split('\n').slice(2,-2).join('\n').trim();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment