Пример #1
0
        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);
        }
Пример #2
0
 public Line FindPreviousMarker(int line, Marker marker)
 {
     return FindPreviousMarker(line, (uint)marker.Number);
 }
Пример #3
0
 public Line FindNextMarker(Marker marker)
 {
     return FindNextMarker(nextLine(), (uint)marker.Number);
 }
Пример #4
0
 public Line FindNextMarker(int line, Marker marker)
 {
     return FindNextMarker(line, (uint)marker.Number);
 }
Пример #5
0
 public void DeleteInstance(int line, Marker marker)
 {
     DeleteInstance(line, marker.Number);
 }
Пример #6
0
 public void DeleteAll(Marker marker)
 {
     NativeScintilla.MarkerDeleteAll(marker.Number);
 }
Пример #7
0
		public MarkerInstance AddMarker(Marker marker)
		{
			return new MarkerInstance(Scintilla, marker, NativeScintilla.MarkerAdd(_number, marker.Number));
		}
Пример #8
0
 public Line FindPreviousMarker(Marker marker)
 {
     return(FindPreviousMarker(marker.Mask));
 }
Пример #9
0
		public Line FindPreviousMarker(Marker marker)
		{
			return FindPreviousMarker(marker.Mask);
		}
Пример #10
0
		public Line FindNextMarker(Marker marker)
		{
			return FindNextMarker(marker.Mask);
		}
Пример #11
0
        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;
        }
Пример #12
0
 public MarkerInstance AddMarker(Marker marker)
 {
     return(new MarkerInstance(Scintilla, marker, NativeScintilla.MarkerAdd(_number, marker.Number)));
 }
Пример #13
0
 public Line DeleteMarker(Marker marker)
 {
     NativeScintilla.MarkerDelete(_number, marker.Number);
     return(this);
 }
Пример #14
0
 public Line FindPreviousMarker(Marker marker)
 {
     return FindPreviousMarker(prevLine(), (uint)marker.Number);
 }
Пример #15
0
		public Line DeleteMarker(Marker marker)
		{
			NativeScintilla.MarkerDelete(_number, marker.Number);
			return this;
		}
Пример #16
0
 internal MarkerInstance(Scintilla scintilla, Marker marker, int handle)
     : base(scintilla)
 {
     _marker = marker;
     _handle = handle;
 }
Пример #17
0
 public Line FindNextMarker(Marker marker)
 {
     return(FindNextMarker(marker.Mask));
 }