Page 1 of 1

Scintilla question about Autocomplete and REM

Posted: Thu Oct 10, 2013 10:37 am
by LCD
Dear users, I have a question: How to make autocompletion with scintilla gadget, which will ignore REM, ' (also REM) and inside strings?
The text is styled using GoScintilla but because I need spaces between keywords and add found SUBroutines and FUNCTIONs to the list, I use own autocomplete routine, but everytime I check style with SCI_GetStyleAt(position-1), I will get "0" for not styled, and shortly after this "1" for REMed out or "4" for String in quotes, so checking for "0" to call my Autocomplete routine will result that it will be called also for REM and Strings.
Any Ideas?

Re: Scintilla question about Autocomplete and REM

Posted: Mon Oct 21, 2013 5:41 pm
by LCD
Thanks for reading. Solution found: Sci_GetStyleAt(Position-2) fixed the problem.