Discussion:
How to highlight current line
Rohit Taralekar
2013-10-15 09:37:38 UTC
Permalink
I have tried following snippet but it is not highlighting the line

scintillaTextEditor.Lines[1].Select();
scintillaTextEditor.Selection.BackColor = Color.Red;


plz help...:-(
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Neil Hodgson
2013-10-15 20:40:22 UTC
Permalink
Post by Rohit Taralekar
I have tried following snippet but it is not highlighting the line
scintillaTextEditor.Lines[1].Select();
You are using a wrapper I am unfamiliar with. In basic Scintilla a line is selected by finding its start and end and selecting that range. SCI_POSITIONFROMLINE, SCI_SETSELECTIONSTART, SCI_SETSELECTIONEND.

Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/groups/opt_out.
Loading...