Multiline string literal in C#
You can use the @ symbol in front of a string to form a verbatim string literal: You also do not have to escape special characters when you use this method, except for double quotes as shown in Jon Skeet’s answer.
You can use the @ symbol in front of a string to form a verbatim string literal: You also do not have to escape special characters when you use this method, except for double quotes as shown in Jon Skeet’s answer.
One way to make multi-line literal strings look good is to use a backslash to escape the newline, like this: output However, PEP-008 discourages backslash usage like that. It’s too fragile: if there’s a space between the backslash and the newline then the newline won’t get escaped, and the backslash will get printed. A more … Read more