###########
comment="#7F7F7F"    			#colore per i commenti multilinea
comment_line="#7F7F7F"  	#colore per i commenti in linea
default="#000000" 					#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
###########
self.SetLexer(wxSTC_LEX_HTML)
#self.SetLexerLanguage("php")
self.SetKeyWords(4," "+"for if else function echo while include session_start class switch break continue exit do die GLOBAL global isset Isset ind double or and case array Array <? ?> <?PHP foreach return ")
#self.SetKeyWords(1," "+"array count Array")
#self.SetKeyWords(0, "function")
self.SetStyleBits(7)
self.SetProperty("fold.html", "1")
self.StyleClearAll()
self.StyleSetSpec(wxSTC_STYLE_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, "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")

# Php styles
self.StyleSetSpec(wxSTC_H_DEFAULT, "fore:"+default+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_HPHP_COMMENT, "fore:"+comment+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_HPHP_COMMENTLINE, "fore:"+comment_line+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_HPHP_DEFAULT, "fore:"+default+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_HPHP_HSTRING, "fore:"+string+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_HPHP_HSTRING_VARIABLE, "fore:"+string_h+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_HPHP_NUMBER, "fore:"+number+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_HPHP_OPERATOR, "fore:"+operator+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_HPHP_SIMPLESTRING, "fore:"+string_s+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_HPHP_VARIABLE, "fore:"+variable+",face:%(font)s,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_HPHP_WORD, "fore:"+key+",face:%(font)s,bold,size:%(size)d" % faces)


self.SetCaretForeground("BLUE")

self.colori={}
self.colori[wxSTC_H_DEFAULT]=default
self.colori[wxSTC_HPHP_COMMENT]=comment
self.colori[wxSTC_HPHP_COMMENTLINE]=comment_line
self.colori[wxSTC_HPHP_DEFAULT]=default
self.colori[wxSTC_HPHP_HSTRING]=string
self.colori[wxSTC_HPHP_HSTRING_VARIABLE]=string_h
self.colori[wxSTC_HPHP_NUMBER]=number
self.colori[wxSTC_HPHP_OPERATOR]=operator
self.colori[wxSTC_HPHP_SIMPLESTRING]=string_s
self.colori[wxSTC_HPHP_VARIABLE]=variable
self.colori[wxSTC_HPHP_WORD]=key+" bold"
