|
From: jeroen <je...@fo...> - 2002-01-29 14:24:17
|
A new snapshot was dropped this morning. - FXSwitcher has two new flags, these will allow it to collapse horizontally or vertically. - API's of FXStringDict fixed. - Bug in FXText fixed. - Adie's style preferences menu is now more-or-less complete. - Styles can be read from registry. - Highlight patterns can be read from registry & compiled to highlight nodes. - if compiled with -DTEST=1, brute-force syntax coloring is possible, but only for C++. Syntax coloring is temporarily piggy-backed on file-date checking; this will be fixed. The brute-force method re-scans the entire text. This takes only a fraction of a second (on 1.4Ghz AMD, with around 5000 lines of C++). The incremental coloring will be MUCH faster, however. === Sample patterns & styles: [STYLES] 10=New,Black,None,None,None,None,None,None,0 5="String constant,#6c50b0,None,None,None,None,None,None,0" 4=Preprocessor,#00a1a1,None,None,None,None,None,None,0 9="FOX macro,#c87d11,None,None,None,None,None,None,0" 3=Keyword,#870000,None,None,None,None,None,None,0 8=New,Cyan,None,None,None,None,None,None,0 2=Format,#b8565d,None,None,None,None,None,None,0 7="Type name,#800004,None,None,None,None,None,None,0" 1=Comment,#009900,None,None,None,None,None,None,0 6="Char constant,#bb74b1,None,None,None,None,None,None,0" [C++] 10="FOX macro,9,3,0,0,\\<(FXDEFMAP|FXMAPFUNCS|FXMAPFUNC|FXMAPTYPES|FXMAPTYPE|FXDECLARE_ABSTRACT|FXDECLARE|FXIMPLEMENT_ABSTRACT|FXIMPLEMENT|FXTRACE|FXASSERT|FXAPI|FXMALLOC|FXCALLOC|FXFREE|FXMEMDUP|FXRESIZE|FXRGBA|FXRGB|FXREDVAL|FXGREENVAL|FXBLUEVAL|FXALPHAVAL)\\>" 4="Preprocessor,4,8,0,0,^\\s*#.*?$" 9="Number,6,2,0,0,\\<((0(x|X)[\\da-fA-F]*)|((\\d+\\.?\\d*)|(\\.\\d+))((e|E)(\\+|-)?\\d+)?)(L|l|UL|ul|u|U|F|f)?\\>" 13="Keyword,3,6,0,0,\\<(friend|typename|explicit|typeid|for|while|if|else|try|catch|new|delete|do|namespace|class|struct|enum|public|private|protected|template|switch|this|return|throw|using|break|continue|goto|static|volatile|const|virtual|mutable|operator|auto|register|overload|inline|extern)\\>" 2="Format string,2,0,1,0,%[#0 +-]?\\d*(\\.(\\*|\\d*))?l?[diouxXeEfFgGaAcsp]" 7="Fixme,10,0,5,0,\\<(?iFIXME)\\>" 11="Type name,7,4,0,0,\\<(int|char|short|long|float|double|bool|complex|void)\\>" 5="C comment,1,0,0,0,/\\*.*?\\*/" 3="Escape sequence,6,0,1,0,\\\\(n|r|a|t|\\d+)" 8="Fixme,10,0,6,0,\\<(?iFIXME)\\>" 12="Char constant,5,5,0,0,\\'(\\\\\\\\|\\\\'|.)+?\\'" 1="String constant,5,7,0,0,\"(\\\\\\\\|\\\\\"|.)*?\"" 6="C++ comment,1,1,0,0,//.*?$" === Put the above in your registry [.foxrc/Adie] and you're be able to test. Regards, - Jeroen |