self.SetLexer(wxSTC_LEX_SQL)
self.SetKeyWords(0, " "+"""insert INSERT update UPDATE DELETE foreign primary key by with 
BY WITH FOREIGN PRIMARY KEY references REFERENCES delete ALTER alter not NOT table TABLE 
drop DROP truncate TRUNCATE  from FROM if IF ELSE else where WHERE like LIKE null NULL 
values VALUES into INTO create CREATE constraint CONSTRAINT add ADD select for in varchar 
varchar2 number integer text longtext blob int or replace SELECT FOR IN VARCHAR VARCHAR2 
NUMBER INTEGER TEXT LONGTEXT BLOB INT OR on ON REPLACE declare begin end elsif DECLARE BEGIN END ELSIF is then and IS THEN AND 
as AS""")
self.StyleClearAll()
# Global default styles for all languages
self.StyleSetSpec(wxSTC_STYLE_DEFAULT,     "fore:#000000,face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_STYLE_LINENUMBER,  "back:#A5A5A5,face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_STYLE_CONTROLCHAR, "face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_STYLE_BRACELIGHT,  "fore:#FFFFFF,back:#0000FF,face:%(font)s,size:%(size)d,bold")
self.StyleSetSpec(wxSTC_STYLE_BRACEBAD,    "fore:#000000,back:#FF0000,face:%(font)s,size:%(size)d,bold")

self.StyleSetSpec(wxSTC_PL_ARRAY, "fore:#0A078D,face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_PL_COMMENTLINE, "fore:#238E6B,face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_PL_DEFAULT, "fore:#C0C0C0,face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_PL_IDENTIFIER, "fore:#000000,face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_PL_NUMBER, "fore:#007FFF,face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_PL_OPERATOR, "fore:#6D009E,face:%(font)s,bold,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_PL_STRING, "fore:#FF0000,face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_PL_STRING_Q, "fore:#FF0000,face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_PL_STRING_QQ, "fore:#FF0000,face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_PL_STRING_QR, "fore:#FF0000,face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_PL_STRING_QW, "fore:#FF0000,face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_PL_STRING_QX, "fore:#FF0000,face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_PL_WORD, "fore:#0A078D,face:%(font)s,bold,size:%(size)d" % faces)

self.colori={}
self.colori[wxSTC_PL_ARRAY]="#0A078D"
self.colori[wxSTC_PL_COMMENTLINE]="#238E6B"
self.colori[wxSTC_PL_DEFAULT]="#C0C0C0"
self.colori[wxSTC_PL_IDENTIFIER]="#000000"
self.colori[wxSTC_PL_NUMBER]="#007FFF"
self.colori[wxSTC_PL_OPERATOR]="#6D009E bold"
self.colori[wxSTC_PL_STRING]="#FF0000"
self.colori[wxSTC_PL_STRING_Q]="#FF0000"
self.colori[wxSTC_PL_STRING_QQ]="#FF0000"
self.colori[wxSTC_PL_STRING_QR]="#FF0000"
self.colori[wxSTC_PL_STRING_QW]="#FF0000"
self.colori[wxSTC_PL_STRING_QX]="#FF0000"
self.colori[wxSTC_PL_WORD]="#0A078D bold"