Example #1
0
    public void InitScintilla()
    {
      ScintillaNet.Scintilla sourceView = m_mainForm.GetSourceView();
      
      sourceView.Margins[0].Width = 20; // Show line numbers
      sourceView.IsReadOnly = true; // Disable editing
      
      sourceView.ConfigurationManager.Language = "cpp";
      sourceView.EndOfLine.Mode = ScintillaNet.EndOfLineMode.Crlf;

      m_markerBreakpoint = sourceView.Markers[0];
      m_markerBreakpoint.Symbol = ScintillaNet.MarkerSymbol.RoundRectangle;
      m_markerBreakpoint.ForeColor = Color.Black;
      m_markerBreakpoint.BackColor = Color.Red;

      m_markerArrow = sourceView.Markers[1];
      m_markerArrow.Symbol = ScintillaNet.MarkerSymbol.Arrow;
      m_markerArrow.ForeColor = Color.Black;
      m_markerArrow.BackColor = Color.Blue;
    }
Example #2
0
        public void InitScintilla()
        {
            ScintillaNet.Scintilla sourceView = m_mainForm.GetSourceView();

            sourceView.Margins[0].Width = 20;   // Show line numbers
            sourceView.IsReadOnly       = true; // Disable editing

            sourceView.ConfigurationManager.Language = "cpp";
            sourceView.EndOfLine.Mode = ScintillaNet.EndOfLineMode.Crlf;

            m_markerBreakpoint           = sourceView.Markers[0];
            m_markerBreakpoint.Symbol    = ScintillaNet.MarkerSymbol.RoundRectangle;
            m_markerBreakpoint.ForeColor = Color.Black;
            m_markerBreakpoint.BackColor = Color.Red;

            m_markerArrow           = sourceView.Markers[1];
            m_markerArrow.Symbol    = ScintillaNet.MarkerSymbol.Arrow;
            m_markerArrow.ForeColor = Color.Black;
            m_markerArrow.BackColor = Color.Blue;
        }