ed.markerDefinePixmap(24, '''/* XPM */
static char * test_xpm = {
"32 16 2 1",
" c None",
". c #F08000", // color used for dithering
". . . . . . . . . . . . . . . . ",
" ",
If you take a look at this script from the Script Showcase, you'll how Scintilla expects it. It expects it as a C struct, so like this:
Hi!
I'm wondering how to use this editor.markerDefinePixmap, specifically the XPM images.
Following does not work, I don't get the blarg icon to sidebar, instead I get white circle:
If I change USER_MARKER value it seems to always give me white circle too, quiet odd.
ed.markerDefinePixmap(24, '''/* XPM */
static char * test_xpm = {
"32 16 2 1",
" c None",
". c #F08000", // color used for dithering
". . . . . . . . . . . . . . . . ",
" ",
If you take a look at this script from the Script Showcase, you'll how Scintilla expects it. It expects it as a C struct, so like this:
I've just tried it, and it shows up ok. You might need to extend the width of the margin though.
Cheers,
Dave.