#Splitting strings accross multiple lines
1 messages · Page 1 of 1 (latest)
Are you looking for multiline string literals?
const hello_world_in_c =
\\#include <stdio.h>
\\
\\int main(int argc, char **argv) {
\\ printf("hello world\n");
\\ return 0;
\\}
;
Or do you want the opposite, a string on multiple lines without new lines in the result
you can ++ multiple strings
const str = "some super long string" ++
"an even longer one";
k