Joerg Schneider:
I understand from your answer, that if I want to implement a DLL lexer in C++, the most straight forward way is to use the Scintilla helper classes. If I do so I need to link some Scintilla objects (WindowAccessor.obj PropSet.obj PlatWin.obj XPM.obj UniConversion.obj) in the DLL.
Robert Roessler may have a build file for this but the only one of those that actually appears useful for most lexers is WindowAccessor. I wouldn't create a lexer DLL. I'd create a new lexer (copying from an existing lexer), run LexGen.py to incorporate it into the build files and then build SciLexer.dll. This is the best supported way to add a lexer.
PS The lexer that I've implemented is quite specialized and also trivial, so that other people probably couldn't make use of it. It simply highlights all characters in a predefined "alphabet". This is useful in CrypTool, because the cassical crypto algorithms typically operated on limited set of chars, e.g. Caesar by default on A-Z.
The motivation for DLL lexers was to allow lexers to be distributed individually and incorporated into other applications. Since you don't want to distribute the lexer by itself it really doesn't make sense for it to be a DLL. Neil _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
