I have converted THIS example to autoit, hope it helps someone. It is an example to color lines based on first character of the line (like the console in Scite): #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <_SciLexer.au3> Opt("GUIOnEventMode", 1) ;Create some constants for styling: Global $SCE_STYLE_BLACK = 10 Global $SCE_STYLE_ORANGE = 11 Global $SCE_STYLE_PURPLE = 12 Global $SCE_STYLE_BLUE = 13 Global $SCE_STYLE_DIFBGCOLOR = 14 ;Colors (Scilexer