CodePlexProject Hosting for Open Source Software
Is there any way to do multiline strings without concatenating them together? I am really looking for something like heredocs from Perl or PHP.
Yes there is, you can put a backslash at the end of every line. For example:
var x = "blah blah\
end of blah";
I tried that and got a syntax error, I'll have to try it again on Monday and see what the exact error was.
I just tried it in the silverlight console and it worked fine, however I should note that newlines are not preserved. Add \r\n to the end of every line if you want to preserve newlines.
that must be it then, i will try adding the newline char to my strings.
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.