Reputation: 95
How to change the editor's background color with scintilla, I don’t know scintilla very much, but it works really, and How?
Upvotes: 3
Views: 3823
Reputation: 21
try this;
SendMessage(SCI_STYLESETBACK, 32, (LPARAM)RGB(r, g, b)); // set back-color of window
SendMessage(SCI_STYLESETBACK, 33, (LPARAM)RGB(r, g, b)); // set back-color of margin
Upvotes: 1
Reputation: 3874
SCI_STYLESETBACK
sets the background colour of the text. If it's not producing the results you're looking for please post a screenshot. Another setting that might help you is: SCI_SETWHITESPACEBACK
?
Upvotes: 1
Reputation: 1168
SendMessage(SCI_STYLESETBACK, STYLE_DEFAULT, RGB(0,0,0));
This code sets the default style's background to black.
Upvotes: 3