I am trying to switch my code to a new way of handling lexers in Scintilla.
This is what worked in previous versions of Scintilla, old ways:
scintilla_send_message(widget, SCI_SETLEXER, SCLEX_CPP, 0);
Since around version 4.4 I must do it new ways. From reading documentation I believe it is something like this:
ILexer5 *lexer = CreateLexer("cpp");
scintilla_send_message(widget, SCI_SETILEXER, 0, lexer);
But I am gettin ILexer5 is undefined
and CreateLexer is undefined
. I am tryng to find appropriate headers and static libs to add to my code and a compiler switch list. Please help.
My current GCC
switches include this:
~/scintilla/bin/scintilla.a -DGTK -DSCI_LEXER -lstdc++ -I~/scintilla/include
Note I am using C not C++.
Lexilla.h
is now in the lexilla
repository.
As of February it has #ifdef __cplusplus
guards, so it appears to support C as well.
If you still encounter issues, I'd suggest pasting the exact error message.