And I know that it works.
These are the lines which I modified in Oxide.o2bas:
...
'USE SCINTILLA
if sci then
hchw(0) = CreateWindowEx(0,"Scintilla",null,EditStyle,0,0,0,0,hwnd,id+i,inst,null)
hsci=hchw[0]
% SCLEX_OBASIC 40
'
def sm SendMessage hsci,
'
'http://search.cpan.org/dist/Wx-Scintilla/lib/Wx/Scintilla/Constant.pm#Lexical_states_for_SCLEX_CPP
'http://www.garybeene.com/code/gbsnippets_gbs_00663.htm
'3 cpp
'8 vb ***
'40 lout
'51 powerbasic
'75 freebasic
// sm SCI_SETLEXER, 8, 0
sm SCI_SETLEXER, 200,0 'Oxygenbasic lexer
include "oxykeywords.inc"
sm SCI_SETKEYWORDS, 0, strptr OxyKeywords
// sm SCI_COLOURISE, 0, -1
'
'sm SCI_STYLESETFORE, SCE_OB_DEFAULT,0
'sm SCI_STYLESETBACK,32,0xFFFFFF 'white
'sm SCI_STYLECLEARALL, 0, 1
// for i=0 to 8
for i=0 to 31
sm SCI_STYLESETFONT, i, fnt 'Courier / Lucida Console
sm SCI_STYLESETSIZE, i, fnz '10..14 point size range
next
'
sm SCI_SETMARGINTYPEN, 0, SC_MARGIN_NUMBER
sm SCI_SETMARGINWIDTHN, 0, 30
sm SCI_SETCARETLINEBACK,0xffeeee,0
sm SCI_SETCARETFORE, 0xff4444,0
sm SCI_SETCARETLINEVISIBLE,1,0
'
def sn SendMessage hsci, SCI_STYLESETFORE,
'
'setting RGB colors
sn 0, 0xff0000 '
sn 1, 0x207800 'line comment
sn 2, 0x006000 'numbers
sn 3, 0xd00000 'keywords
sn 4, 0x008800 'string
sn 5, 0xc00080 '#names
sn 6, 0x000088 'symbols
sn 7, 0x002000 '
sn 23, 0x207800 'block comment
sn 24, 0x207800 'commentline //
'
SetText hsci,s
'
else 'NOT SCINTILLA
...
The lines after // and the statements for block comment and commentline was all I did. For some reason I had to comment out #compact in Oxide.o2bas to run BuildInstallOxide.bat. This will already give basic highlighting. There is much more possible with Scintilla. Of course sintilla.inc must be adapted a little bit (and most of the SCI_SETLEX constants would not be necessary) to use the more advanced capabilities, but it already works fine with OxIde.
.