private void PrepareTB(FastColoredTextBox tb) { tb.NoUseCache = true; tb.BoldCaret = true; tb.ShowBeginOfFunctions = false; tb.ShowChangedLinesOnScrollbar = false; tb.ShowFoldingLines = false; tb.EnableFoldingIndicator = false; tb.ShowFoldingMarkers = false; tb.DrawLineNumberFromInfo = true; tb.ShowInvisibleCharsInSelection = true; tb.SelectionWithBorders = true; tb.AllowSeveralTextStyleDrawing = false; tb.ReadOnly = true; tb.SetScrollbarsNotRefreshable(); tb.OffAlignByLines(); //tb.Font = new System.Drawing.Font("Monospace", 10f); // in linux Themes.SetTheme(tb, "Стандартная"); tb.Paint += Tb_Paint; }