0

I have this: And i want to put it in this:

 string firstTag = "";

So in the end i will get: string firstTag = ""; And if i will use a breakpoint on firstTag i will see only:

This is what i have tried:

public static void test(string filename)
        {
            filename = @"c:\temp\scoopstest\scooptest.html";

            int f = 0;
            int startPos = 0;
            string firstTag = "<font color="898A8E">";

But i'm getting error on: 898A8E">"

user2864740
  • 60,010
  • 15
  • 145
  • 220
  • also see this http://stackoverflow.com/questions/1928909/in-c-can-i-escape-a-double-quote-in-a-verbatim-string-literal – Selman Genç Aug 06 '14 at 00:10

2 Answers2

1

I'm not entirely sure if I'm answering the question correctly, but

string firstTag = "<font color="898A8E">";

looks problematic if you don't escape the quotation marks:

string firstTag = "<font color=\"898A8E\">";
Community
  • 1
  • 1
alex
  • 6,818
  • 9
  • 52
  • 103
0

Sure you get that error. You have to escape the quotes:

"<font color=\"898A8E\">"
             ^       ^
pid
  • 11,472
  • 6
  • 34
  • 63