Scintilla question about Autocomplete and REM

Just starting out? Need help? Post your questions and find answers here.
LCD
Enthusiast
Enthusiast
Posts: 206
Joined: Sun Jun 01, 2003 10:55 pm
Location: Austria, Vienna
Contact:

Scintilla question about Autocomplete and REM

Post 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?
My PC
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
LCD
Enthusiast
Enthusiast
Posts: 206
Joined: Sun Jun 01, 2003 10:55 pm
Location: Austria, Vienna
Contact:

Re: Scintilla question about Autocomplete and REM

Post by LCD »

Thanks for reading. Solution found: Sci_GetStyleAt(Position-2) fixed the problem.
My PC
Ryzen 9 5950, 64 GB RAM, nVidia RTX A4000, Win 10
Ryzen 7 1700, 32 GB RAM, nVidia RTX A2000, Win 10
Post Reply