- nLine-1
You're right, but I use the following statement in my program
nLine := :: GetCurrentLine () + 1
That's not a problem.
I know Scintilla used as first line the value 0
If I press double click on the line is highlighted
If I use the keyboard (SHIFT + Cursors, SHIFT + End, etc) line is highlighted
If executed by code (SCI_SETSEL, nPos, -1) the text to the end of the document is highlighted well
All previous cases work well with the defined highlighting color
The highlight color is defined at the beginning of the application
// :: Send (SCI_SETSELFORE, 1 CLR_WHITE)
:: Send (SCI_SETSELBACK, 1, RGB (0, 179, 179))