I have a small test app using the GTK version of Scintilla (the
"Scintilla" component has been built with a custom Makefile,
specifying both -DGTK and -DSCI_LEXER).
This test just creates a window and packs a new Scintilla editor
instance into it. Then a minimal lexer config is set up (with a
set_lexer_language "cpp"), a small keyword list is set, and some color
settings are defined using style_set_fore calls for half a dozen of
the standard cpp syntax elements and the usual "BGR" int values.
Finally, a fragment of C source is inserted into the buffer.
This works as expected (the C source is colored) when run with a GTK
runtime installed on WinXP... but runs *without* any syntax coloring
when built and executed on a "real" GTK system (Fedora Core 5 with, of
course, an X server).
It looks like PlatGTK.cxx should be working its magic and allocating
GTK colors behind the scenes - and this *does* seem to work with the
GTK runtime on Windows... are there any ideas as to what could cause
the coloring to fail on a Linux system? ;)
"set_use_palette" does not seem to make any difference, BTW (which may
be believable because it isn't obvious how it would affect anything
anyway).
Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest