CodePlexProject Hosting for Open Source Software
the title say everything...
i need change the background color of multiple lines in the scintillanet.
not is current (caret) line background color. is in the others lines.
this is possible?
if yes, how do that?
thank you in advance for help
What you are looking for are Line Markers
// First define the marker. Usually they have some kind
// of symbol to show in the margin but we can set it to
// only change the background color of the line
Marker marker = scintilla.Markers;
marker.Symbol = MarkerSymbol.Background;
marker.BackColor = Color.Green;
// Add 3 lines
scintilla.Text = "This is \r\n a test.\r\nThis is only a test";
// Go ahead and add the marker to all 3 lines. This sets a
// background color that overrides the styles'
// And to clear the background color unset the marker
i will try.
How can I change the forecolor instead of background? I tried to make
marker.ForeColor = Color.Green;
but didn't worked!
Can you help me?
Maybe you have to set the UseForeColor property of the Scintilla control to true.
Doesn't worked. It makes all lines Black.
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.