Does the Scintilla API exposes a method to "register" a new lexer class (for a new language) derived from the ILexer interface
without embedding it in a separate DLL or within the SciLexer.dll ?
Scintilla and external lexers
It doesn't matter where your lexer lives, you just give it the function pointers. You can easily write the lexer inside your own .EXE that hosts Scintilla, and just pass it the function pointer table that's set up to point to that code.
Thanks Michael for the help. What do you mean by "that hosts Scintilla"? (hosted as a DLL or embedded inside the .EXE?)
Either/or. Scintilla (IIRC) can be compiled into your EXE directly, or used as an external DLL loaded at runtime. Either approach lets you run the lexer from wherever you like. Again, it's just function pointers :-)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement