internal FindReplace(Scintilla scintilla) : base(scintilla) { _marker = scintilla.Markers[10]; _marker.SetSymbolInternal(MarkerSymbol.Arrows); _indicator = scintilla.Indicators[16]; _indicator.Color = Color.Purple; _indicator.Style = IndicatorStyle.RoundBox; _window = new FindReplaceDialog(); _window.Scintilla = scintilla; _incrementalSearcher = new IncrementalSearcher(); _incrementalSearcher.Scintilla = scintilla; _incrementalSearcher.Visible = false; scintilla.Controls.Add(_incrementalSearcher); }
public Line FindPreviousMarker(int line, Marker marker) { return FindPreviousMarker(line, (uint)marker.Number); }
public Line FindNextMarker(Marker marker) { return FindNextMarker(nextLine(), (uint)marker.Number); }
public Line FindNextMarker(int line, Marker marker) { return FindNextMarker(line, (uint)marker.Number); }
public void DeleteInstance(int line, Marker marker) { DeleteInstance(line, marker.Number); }
public void DeleteAll(Marker marker) { NativeScintilla.MarkerDeleteAll(marker.Number); }
public MarkerInstance AddMarker(Marker marker) { return new MarkerInstance(Scintilla, marker, NativeScintilla.MarkerAdd(_number, marker.Number)); }
public Line FindPreviousMarker(Marker marker) { return(FindPreviousMarker(marker.Mask)); }
public Line FindPreviousMarker(Marker marker) { return FindPreviousMarker(marker.Mask); }
public Line FindNextMarker(Marker marker) { return FindNextMarker(marker.Mask); }
private void InitializeScintilla() { _marker = scintilla1.Markers[0]; _marker.Symbol = MarkerSymbol.Background; _marker.BackColor = Color.FromArgb(255, 225, 225); scintilla1.Indentation.SmartIndentType = SmartIndent.Simple; scintilla1.Lexing.StreamCommentPrefix = "/*"; scintilla1.Lexing.StreamCommentSufix = "*/"; scintilla1.Lexing.LineCommentPrefix = "//"; Font font = new Font("Consolas", 10); scintilla1.Font = font; scintilla1.Styles[0].ForeColor = Color.Black; // keyword scintilla1.Styles[0].Font = font; scintilla1.Styles[1].ForeColor = Color.Blue; // keyword scintilla1.Styles[1].Font = font; scintilla1.Styles[2].ForeColor = Color.DarkOrange; // int scintilla1.Styles[2].Font = font; scintilla1.Styles[3].ForeColor = Color.FromArgb(0xA31515); // string scintilla1.Styles[3].Font = font; scintilla1.Styles[4].ForeColor = Color.Green; // comment scintilla1.Styles[4].Font = font; }
public MarkerInstance AddMarker(Marker marker) { return(new MarkerInstance(Scintilla, marker, NativeScintilla.MarkerAdd(_number, marker.Number))); }
public Line DeleteMarker(Marker marker) { NativeScintilla.MarkerDelete(_number, marker.Number); return(this); }
public Line FindPreviousMarker(Marker marker) { return FindPreviousMarker(prevLine(), (uint)marker.Number); }
public Line DeleteMarker(Marker marker) { NativeScintilla.MarkerDelete(_number, marker.Number); return this; }
internal MarkerInstance(Scintilla scintilla, Marker marker, int handle) : base(scintilla) { _marker = marker; _handle = handle; }
public Line FindNextMarker(Marker marker) { return(FindNextMarker(marker.Mask)); }