Here is some setup code for scintilla after you got it created and sitting in a window. I wrote my own highlight parser and you just do SendMessage API calls to scintilla. Its fairly simple really.
a=call dll (1,"SendMessageA",hctl,SCI_SETMARGINWIDTHN,0, 50)
`SCI_SETMARGINTYPEN(int margin, int iType)
`SCI_GETMARGINTYPEN(int margin)
a=call dll (1,"SendMessageA",hctl,SCI_SETMARGINTYPEN,0, 1)
`**************************************************************************************
a=call dll (1,"SendMessageA",hctl,2,SCI_STYLESETFore, colorref(255,255,255))
a=call dll (1,"SendMessageA",hctl,1,SCI_STYLESETBack,colorref(208,219,219))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETFORE, 1,colorref(255,0,0))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETBack, 1,colorref(208,219,219))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETFORE, 0,colorref(0,0,128))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETBACK, 0,colorref(208,219,219))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETFORE, 2,colorref(0,0,255))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETBack, 2,colorref(208,219,219))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETFORE, 3,colorref(255,255,0))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETBack, 3,colorref(208,219,219))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETFORE, 4,colorref(255,0,255))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETBack, 4,colorref(208,219,219))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETFORE, 5,colorref(0,0,255))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETBack, 5,colorref(208,219,219))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETFORE, 6,colorref(255,255,0))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETBack, 6,colorref(208,219,219))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETFORE, 7,colorref(0,150,0))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETBack, 7,colorref(208,219,219))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETFORE, 8,colorref(0,0,255))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETBack, 8,colorref(208,219,219))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETFORE, 9,colorref(0,0,255))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETBack, 9,colorref(208,219,219))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETFORE, 10,colorref(0,0,255))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETBack, 10,colorref(208,219,219))
`do
`loop
a=call dll (1,"SendMessageA",hctl,SCI_SETMOUSEDOWNCAPTURES,0,0)
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETBACK, STYLE_LINENUMBER, colorref(165,176,176))
a=call dll (1,"SendMessageA",hctl,SCI_STYLESETEOLFILLED,0, 1 )
a=call dll (1,"SendMessageA",hctl,SCI_SETLEXER,0,0)
What colorref does is take a rgb value and make a windows color dword. I'm willing to share more of how to use scintilla, just not my entire editor code.