Re: Cannot load a lexer

Neil Hodgson <[email protected]> Sat, 13 Dec 2025 18:22:56 +1100
Newsgroups gmane.comp.lib.scintilla.devel
Message-ID <CACWkrTjAsDZishzukJCg2mcKSg5EHoXvoH4z7PHTtcYV=0+NTg@mail.gmail.com>
Roger Tunnicliffe:

> Dim pLexer As Any Ptr = CreateLexer("freebasic")
...
> dim R as integer = scintilla_send_message(sci, SCI_GETLEXER, NULL, pLexer)
>
> returns a value of 75

   That looks good since that is the right ID for freebasic.
#define SCLEX_FREEBASIC 75

> Correcting SCI_SETILEXER did not provide any Highlighting in Scintilla at all.

   Have you defined appearances for the lexical classes?
SCI_STYLESETFORE and related.
https://scintilla.org/ScintillaDoc.html#SCI_STYLESETFORE

   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 [email protected].
To view this discussion visit https://groups.google.com/d/msgid/scintilla-interest/CACWkrTjAsDZishzukJCg2mcKSg5EHoXvoH4z7PHTtcYV%3D0%2BNTg%40mail.gmail.com.