private void btInvisibleChars_Click(object sender, EventArgs e) { foreach (FATabStripItem tab in tabMain.Items) { var ctl = (tab.Controls[0] as RegexTesterTab); HighlightInvisibleChars(ctl.RegexText.Range); HighlightInvisibleChars(ctl.TesterText.Range); } if (CurrentTB != null) { CurrentTB.Invalidate(); } }
private void UpdateFilter() { toSourceIndex.Clear(); var count = base.lines.Count; var regex = new Regex(LineFilterRegex); for (int i = 0; i < count; i++) { if (regex.IsMatch(lines[i].Text)) { toSourceIndex.Add(i); } } CurrentTB.NeedRecalc(true); CurrentTB.Invalidate(); }
/// <summary> /// Starts or stops highlighting the current line based on {@code _highlightCurrentLine}. /// </summary> private void HighlightCurrentLine() { foreach (FATabStripItem tab in tsFiles.Items) { if (_highlightCurrentLine) { (tab.Controls[0] as FastColoredTextBox).CurrentLineColor = currentLineColor; } else { (tab.Controls[0] as FastColoredTextBox).CurrentLineColor = Color.Transparent; } } if (CurrentTB != null) { CurrentTB.Invalidate(); } }
private void HighlightCurrentLine() { foreach (Editor tab in tablist.ToArray()) { if (_highlightCurrentLine) { tab.mainEditor.CurrentLineColor = currentLineColor; } else { tab.mainEditor.CurrentLineColor = Color.Transparent; } } if (CurrentTB != null) { CurrentTB.Invalidate(); } }