jacobslusser / ScintillaNET

A Windows Forms control, wrapper, and bindings for the Scintilla text editor.
MIT License
963 stars 243 forks source link

How can I remove the background color of the focused line? #528

Closed cgm-wmaisenhelder closed 1 year ago

cgm-wmaisenhelder commented 1 year ago

I'm using ScintillaNET 5.3.1.3 in .NET Framework 4.5.2 WinForms. I just dropped the Scintilla control on a new form, and when I run my application, the focused line is black, and I can't read the text on that line unless I select it. I would like to either simply outline the current line or remove the current line highlighting/focusing altogether.

Please advise.

image

VPKSoft commented 1 year ago

Hi, Set the scintilla1.CaretLineBackColor = Color.White;.

cgm-wmaisenhelder commented 1 year ago

Awesome! Thank you very much. I was looking at that, but I (incorrectly) assumed that was referring to the color of the carat, not the background.

Thanks again.