On 01/20/12 14:08, Paul R wrote: > The text editor perhaps? bearing in mind i only want read functionality. > Identifying 'start /end' to statement blocks etc, > Colouring text if it is a certain dataype, etc. > background highlighting of text when the context is of a certain statement > type, all of that kind of thing. > > Can the text editor be tweaked in this way?
The text editor already supports colors very easily. See this simple example: http://seriss.com/people/erco/fltk/#Fl_Text_DisplayStyle You can specify an optional 'style buffer' to the Fl_Text_* widget which parallels the 'text buffer'. Each byte in the 'style buffer' is an index into a 'style array' that defines the color, font face, and font size of each corresponding character in the 'text buffer'. FLTK's own code editor (within fluid) makes use of this feature to enable syntax highlighting of the C++ code, so that code is syntax-colored as you type. _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk