Menu

How to set Editor's background color?

2009-09-02
2012-11-13
  • Yang Songxiang

    Yang Songxiang - 2009-09-02

    Hi,
    I don't like default white background color, and tried SCI_MARKERSETBACK in the code, but seems it doesn't work. Does anyone can help me show a sample code to let Scintilla set background color as black color?

    Thanks

     
    • cchris

      cchris - 2009-09-02

      ::SendMessage(hwndSci,  SCI_STYLESETBACK,32,<your RGB colour>)

      But it is much easier to change the Preferences -> Styler Configurator -> Globalstyles, default style items.

      CChris

       
MongoDB Logo MongoDB