/// <summary> /// Make the whole text the default font color. /// </summary> /// <param name="rtb">The richedit control that hold the note content.</param> /// <param name="rtf">The RTF text</param> /// <param name="skinnr">The skin number of the current note.</param> /// <param name="notes">Reference to notes class.</param> /// <returns>The new rtf stream</returns> private static string ResetHighlighting(RichTextBox rtb, string rtf, int skinnr, Notes notes) { comment = false; commentline = false; outerhtml = true; htmlstringpart = false; phpstringpart = false; currentstringquote = '"'; //Log.Write(LogType.info, "rtb.TextLength=" + rtb.TextLength); // debug return(rtfdirectedit.SetColorAllRTF(rtf, notes.GetTextClr(skinnr), rtb.TextLength)); }