###########
comment="#7F7F7F"    			#colore per i commenti multilinea
comment_line="#7F7F7F"  	#colore per i commenti in linea
default="#0A078D" 					#colore per le funzioni
string="#7F0000"  					#colore stringhe
string_h="#7F0000" 	 			#colore stinghe 2
number="#FF0000"					#colore per i numeri
operator="#7F7F7F"					#colore per gli operatori
string_s="#7F0000"					#colore stringhe 3
variable="#007F7F"					#colore variabili
key="#00007F"							#colore costrutti
key2="#FF0000"
###########
self.SetLexer(wxSTC_LEX_CPP)
#self.SetLexerLanguage("php")
self.SetKeyWords(0," "+"for if else function void bool int string vector echo while include session_start class switch break continue exit do die GLOBAL global isset Isset ind double or and case array Array static foreach while return unsigned char default")
#self.SetKeyWords(1," "+"tito")
#self.SetKeyWords(0, "function")
#self.SetStyleBits(7)
self.SetProperty("fold.html", "1")
self.StyleClearAll()
self.StyleSetSpec(wxSTC_STYLE_DEFAULT,     "fore:"+default+",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, "fore:#0A078D,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:#0A078D,back:#FF0000,face:%(font)s,size:%(size)d,bold")

# Php styles
self.StyleSetSpec(wxSTC_C_DEFAULT, "fore:"+default+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_C_IDENTIFIER, "fore:"+default+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_C_COMMENT, "fore:"+comment+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_C_COMMENTDOC, "fore:"+comment+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_C_COMMENTLINE, "fore:"+comment_line+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_C_DEFAULT, "fore:"+default+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_C_STRING, "fore:"+string+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_C_CHARACTER, "fore:"+string_h+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_C_NUMBER, "fore:"+number+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_C_OPERATOR, "fore:"+operator+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_C_STRINGEOL, "fore:"+string_s+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_C_PREPROCESSOR, "fore:"+variable+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_C_WORD, "fore:"+key+",face:%(font)s,bold,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_C_WORD2, "fore:"+key2+",face:%(font)s,bold,size:%(size)d" % faces)

self.SetCaretForeground("BLUE")

self.colori={}
self.colori[wxSTC_C_DEFAULT]=default
self.colori[wxSTC_C_IDENTIFIER]=default
self.colori[wxSTC_C_COMMENT]=comment
self.colori[wxSTC_C_COMMENTLINE]=comment_line
self.colori[wxSTC_C_COMMENTDOC]=comment
self.colori[wxSTC_C_DEFAULT]=default
self.colori[wxSTC_C_STRING]=string
self.colori[wxSTC_C_CHARACTER]=string_h
self.colori[wxSTC_C_NUMBER]=number
self.colori[wxSTC_C_OPERATOR]=operator
self.colori[wxSTC_C_STRINGEOL]=string_s
self.colori[wxSTC_C_PREPROCESSOR]=variable
self.colori[wxSTC_C_WORD]=key+" bold"
self.colori[wxSTC_C_WORD2]=key2+" bold"