###########
comment="#898989"			#colore per i commenti multilinea
comment_line="#898989"			#colore per i commenti in linea
default="#000000"			#colore per le funzioni
string="#0000EE"			#colore stringhe
string_h="#0000EE"			#colore stinghe 2
number="#E80000"			#colore per i numeri
operator="#008080"			#colore per gli operatori
string_s="#0000EE"			#colore stringhe 3
variable="#000080"			#colore variabili
key="#000080"				#colore costrutti
key2="#000080"				#? azzo e' ??? ( andr3a )
###########
self.SetLexer(wxSTC_LEX_CPP)
self.SetKeyWords(0," "+"Accordion Button CellRender CheckBox Collection ComboBox Data DataHolder DataProvider DataSet DateChoser DateField Delta DeltaItem DeltaPacket DepthManager FocusManager Form Iterator Label Loader MenuBar NumericStepper PopUpManager ProgressBar RadioButton RDBMSResolver Screen ScrollPane Slide TextInput TransferObject Tree TreeDataProvider UIComponent UIEventDispatcher UIObject Web WebServiceConnector Window XMLConnector XUpdateResolver MovieClipLoader NaN ne scroll SharedObject Sound loadSound position System TextFormat TextSnapshot unescape updateAfterEvent Video clear attachMovie XMLNode XMLSocket NetConnection NetStream newline nextFrame prevFrame nextScene watch unwatch onUpdate onClipEvent onEnterFrame _parent Date getDate getMinutes getHours getYears getSeconds getTime getFullYear getMilliSeconds dynamic default #endinitclip Error eq try catch finally throw escape true false apply ge getProperty getVersion getSWFVersion play stop gotoAndPlay gotoAndStop gt #initclip instanceof interface isFinite isNaN KEY getAscii getCode isDown LoadVars load loadClip send sendAndLoad getBytesLoaded getBytesTotal LocalConnection onData connect domain lt addRequestHeader max min sin cos tan substring substr gain Microphone onMouseMove onMouseDown onMouseUp hitTest lineStyle _lockroot XML onLoadProgress onLoadStart unloadClip getNextHighestDepth prototype _width _height _x _y _alpha _visible swapDepth getDepth createEmptyMovieClip TextField createTextField _global StyleSheet TextArea Calendar List Combobox add concat join push split length reverse shift pop slice sort sortOn toString unShift asfunction Boolean valueOf enabled _focusrect _editable Stage _name menu Menu round ceil floor abs onPress onRelease onRollOver onRollOut onReleaseOutside onKeyUp onKeyDown addListener removeListener tabEnabled _target _url getURL trackAsMenu useHandCursor _xmouse _ymouse _xscale _yscale call Camera height width index motionLevel motionTimeOut muted onActivity onStatus onResult onLoad onError onInit hideBuiltInItems ContextMenuItem copy visible continue list get set uninstall removeMovieClip loadMovie loadMovieNum unloadMovie unloadMovieNum install onStart onFocus setQuality setRGB setInterval clearInterval chr Color getRGB setTrasform onSelect for if else while foreach in and or static public final extends implements var Date DataGrid DataGridColumn Menu ContextMenu Alert core mx import #include from Object Array String Number undefined null NULL NaN Function function class public private protected return new this void Void Math _root _level eval switch case break with delete trace")
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")

# As 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,size:%(size)d" % faces)
self.StyleSetSpec(wxSTC_C_WORD2, "fore:"+key2+",face:%(font)s,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
self.colori[wxSTC_C_WORD2]=key2
