in Python, I can do something like that to assign a string “WYSIWYG style”. It will take into account my line feeds and all spaces and tabs. That proves to be useful in many circumstances.
python:
HTMLSnippet = """
<html>
<head>
</head>
<body>
</body>
</html>
"""
print HTMLSnippet
the output of this would be :
<html>
<head>
</head>
<body>
</body>
</html>
Is there any such string tool in C# ? Or something to fulfill the same needs ?
Are you looking for verbatim strings?
With verbatim strings, you can include multi line strings like e.g.