I have a RichTextBox in my application, that reads a text file, a log file exactly, that looks like this: http://pastebin.com/3ETeYSUH And that goes on.
My question is, how can I color the full line to RED that says "Sikertelen csatlakozás"? (Yes, hungarian language, it means: "Can't connect")
My code that reads the file:
string fileName = "servermanagerlog.txt";
            TextRange range;
            FileStream fStream;
            if (File.Exists(fileName))
            {
                range = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd);
                fStream = new FileStream(fileName, FileMode.OpenOrCreate);
                range.Load(fStream, DataFormats.Text);
                fStream.Close();
            }
            richTextBox.ScrollToEnd();