Hey. I am almost finished with my 3rd BlitzMax module which wraps up some textarea functions so that it is crazy easy to syntax highlight.
I will post a demo later. Let me know of your thoughts!
FEATURES:
*Set CodeArea font
*Set CodeArea background and foreground/text color
*Set CodeArea keyword color
*Set CodeArea comment color
*Set CodeArea digit color
*Set CodeArea string color
*Create a syntax list per CodeArea
*Retrieve textarea handle from the TCodeArea type
*Pretty much everything else that you can do with a textarea
POSSIBLE UPCOMING FEATURES:
*Set CodeArea operator colors
*Auto-Indenting
*Anything else I think of or anything that is suggested
FUNCTIONS:
...More being added...
SCREENSHOTS:
I will post a demo later. Let me know of your thoughts!
FEATURES:
*Set CodeArea font
*Set CodeArea background and foreground/text color
*Set CodeArea keyword color
*Set CodeArea comment color
*Set CodeArea digit color
*Set CodeArea string color
*Create a syntax list per CodeArea
*Retrieve textarea handle from the TCodeArea type
*Pretty much everything else that you can do with a textarea
POSSIBLE UPCOMING FEATURES:
*Set CodeArea operator colors
*Auto-Indenting
*Anything else I think of or anything that is suggested
FUNCTIONS:
CreateCodeArea:TCodeArea(x:Int, y:Int, width:Int, height:Int, group:TGadget, style:Int = CODEAREA_DEFAULT) FreeCodeArea(codearea:TCodeArea) SetCodeAreaColor(codearea:TCodeArea, red:Int, green:Int, blue:Int, background:Int = False) SetCodeAreaKeywordColor(codearea:TCodeArea, red:Int, green:Int, blue:Int) SetCodeAreaCommentColor(codearea:TCodeArea, red:Int, green:Int, blue:Int) SetCodeAreaDigitColor(codearea:TCodeArea, red:Int, green:Int, blue:Int) SetCodeAreaFont(codearea:TCodeArea, font:TGUIFont) SetCodeAreaLayout(codearea:TCodeArea, lft:Int, rgt:Int, top:Int, bottom:Int) SetCodeAreaStringColor(codearea:TCodeArea, red:Int, green:Int, blue:Int) SetCodeAreaKeywords(codearea:TCodeArea, path:String) CodeAreaLineCount:Int(codearea:TCodeArea) CodeAreaCharCount:Int(codearea:TCodeArea) CodeAreaLinePos:Int(codearea:TCodeArea) CodeAreaCharPos:Int(codearea:TCodeArea) UpdateCodeArea(codearea:TCodeArea) GetCodeAreaText:String(codearea:TCodeArea) CodeAreaHandle:TGadget(codearea:TCodeArea) ClearCodeAreaKeywords(codearea:TCodeArea) SetCodeAreaCommentOperator(codearea:TCodeArea, operator:String) SetCodeAreaAutoCapitalize(codearea:TCodeArea, flag:Int) AddCodeAreaText(codearea:TCodeArea, txt:String) ActivateCodeArea(codearea:TCodeArea) ClearCodeArea(codearea:TCodeArea)
...More being added...
SCREENSHOTS:
