Making Quotation(' or ") a String Possible?
<p>im working on a code editor and i want to know if how to transfer a quotation into a string .</p>

<p>im using parameters something like this:</p>

<pre><code> if (token == "letterX" || token.StartsWith("x") || token.StartsWith("X"))
            {
                int length = line.Length - (index - start);
                string commentText = rtb.Text.Substring(index, length);
                rtb.SelectionStart = index;
                rtb.SelectionLength = length;
                lb.Visible = true;
                int i = commentText.IndexOf(token); 

            }
</code></pre>

<p>and i want to know how to replace the letter X into quotation, like what in this regex expression shows:</p>

<pre><code>Regex singlequote = new Regex("\'[^\"]*\'");
</code></pre>

<p>output that i want to achieve was when i type singlequote and ended with another singlequote(closing), text inside quotation will change to color marroon(but i already have the code for that) . same as doublequote started with a double then closes with another1 .</p>

<p>i just wanna ask how to make single(') and doublequote(") a string .</p>
