For some reason I have difficulty removing escape characters in Metro.
An example:
Document = Document.Replace(@"\t", " ")
.Replace(@"\n", " ")
.Replace(@"\r", " ")
.Replace(@"\v", " ");
That does not do anything.
The sample string: "public static int main()\v{\v\t\v}\r"
Also .Replace(@'\', ' ') does not work as well.
Remove your “@” symbols. You don’t want to search for a backslash followed by a t. You want to search for a tab: “\t”, not @”\t”.