I am trying to declring a string like this :
string query = @"SELECT foo, bar
FROM table
WHERE id = 42";
as explained in the Post Here
My Text is :
editor.DocumentText = @"<html><body> <div align=\"left\"> <font face=\"Arial\" color=\"#0000ff\">
<span style=\"font-size:8pt\">Multi-Room DVR Splash screen is displayed with the following:</span></font>";
but it gives error ,
I do understand that i can use +
and give multi line string :
editor.DocumentText = "<html><body> <div align=\"left\"> <font face=\"Arial\" color=\"#0000ff\">"+
"<span style=\"font-size:8pt\">Multi-Room DVR Splash screen is displayed with the following:</span></font>";
This even works fine .
My doubt is why the 1st method of declaring is giving error , but same is working for query
example .