Possible Duplicate:
Multiline strings in VB.NET
In c#, you can be all like:
string s = @"hello there mister";
Does VB.NET have something similar that doesn’t involve string concatenation? I’d like to be able to paste multi-line text in between two double quotes. Somehow, I don’t believe VB.NET supports this.
EDIT: VS2015 ONWARDS
YOU CAN NOW HAVE MULTILINE STRINGS IN VS2015 BY WRITING THEM LIKE SO:
There is no multi-line string literal in VB .NET – the closest thing you can get (without using LINQ) is a multi-line statement with concatenation.
Prior to VS2010:
Post 2010:
The XML/LINQ trick is:
But this limits what characters you can place inside the
<a></a>block because of XML semantics. If you need to use special characters wrap the text in a standardCDATAblock: