Joerg Schneider wrote:
we are using Scintilla as the editor for text and binary data in CrypTool
(www.cryptool.org).
I've developed an external lexer (Windows DLL) to do some highlighting,
which basically works fine.
I had some problems getting it linked. To resolve undefined symbols I had
to add the following file from a scintilla\win32 directory:
WindowAccessor.obj PropSet.obj PlatWin.obj XPM.obj UniConversion.obj
Is this the normal way to link external lexers?
If yes, wouldn't it be nicer to export the required symbols from
scilexer.dll or a separate DLL, which comes with Scintilla?
I originally built and tested the OCaml lexer (LexCaml.cxx) as an
external lexer, and actually built the DLL *with* PropSet.cxx and
WindowAccessor.cxx as part of it. Look at the source (particularly
the parts conditionally compiled with BUILD_AS_EXTERNAL_LEXER) to see
how I did it.
Yes, in some ways it indeed seems "nicer" to build Scintilla with a
much smaller core and most or all of the lexers as externals... but
then building, distributing, and maintaining everything can become
something of a nightmare when trying to keep everything working on all
the platforms supported by Scintilla.
And the people who want (or don't care about) all the lexers coming
bundled would be dealing with the added complexity for no reason. ;)
Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest