mod/maxgui.mod/fltkmaxgui.mod/src/Fl_Text_Display.cxx
void Fl_Text_Display::highlight_data(Fl_Text_Buffer *styleBuffer,
                                     const Style_Table_Entry *styleTable,
                                     int nStyles, char unfinishedStyle,
                                     Unfinished_Style_Cb unfinishedHighlightCB,
                                     void *cbArg ) {
  mStyleBuffer = styleBuffer;
  mStyleTable = styleTable;
  mNStyles = nStyles;
  mUnfinishedStyle = unfinishedStyle;
  mUnfinishedHighlightCB = unfinishedHighlightCB;
  mHighlightCBArg = cbArg;
  mColumnScale = 0;
  
  mStyleBuffer->canUndo(0);
  damage(FL_DAMAGE_EXPOSE);
}
/**   
 \brief Attach (or remove) highlight information in text display and redisplay.
 
 Highlighting information consists of a style buffer which parallels the
 normal text buffer, but codes font and color information for the display;
 a style table which translates style buffer codes (indexed by buffer
 character - 'A') into fonts and colors; and a callback mechanism for
 as-needed highlighting, triggered by a style buffer entry of
 "unfinishedStyle".  Style buffer can trigger additional redisplay during
 a normal buffer modification if the buffer contains a primary Fl_Text_Selection
 (see extendRangeForStyleMods for more information on this protocol).
 
 Style buffers, tables and their associated memory are managed by the caller.
 
 Styles are ranged from 65 ('A') to 126.
 
 \param styleBuffer this buffer works in parallel to the text buffer. For every
   character in the text buffer, the stye buffer has a byte at the same offset 
   that contains an index into an array of possible styles. 
 \param styleTable a list of styles indexed by the style buffer
 \param nStyles number of styles in the style table
 \param unfinishedStyle if this style is found, the callback below is called
 \param unfinishedHighlightCB if a character with an unfinished style is found,
   this callback will be called
 \param cbArg and optional argument for the callback above, usuallay a pointer
   to the Text Display.
 */
\brief Attach (or remove) highlight information in text display and redisplay.
Highlighting information consists of a style buffer which parallels the
normal text buffer, but codes font and color information for the display;
a style table which translates style buffer codes (indexed by buffer
character - 'A') into fonts and colors; and a callback mechanism for
as-needed highlighting, triggered by a style buffer entry of
"unfinishedStyle".  Style buffer can trigger additional redisplay during
a normal buffer modification if the buffer contains a primary Fl_Text_Selection
.

Style buffers, tables and their associated memory are managed by the caller.

Styles are ranged from 65 ('A') to 126.

\param styleBuffer this buffer works in parallel to the text buffer. For every
character in the text buffer, the stye buffer has a byte at the same offset
that contains an index into an array of possible styles.
\ brief Attach ( or remove ) highlight information in text display and redisplay . Highlighting information consists of a style buffer which parallels the normal text buffer but codes font and color information for the display ; a style table which translates style buffer codes ( indexed by buffer character - ' A ' ) into fonts and colors ; and a callback mechanism for as - needed highlighting triggered by a style buffer entry of " unfinishedStyle " . Style buffer can trigger additional redisplay during a normal buffer modification if the buffer contains a primary Fl_Text_Selection . Style buffers tables and their associated memory are managed by the caller . Styles are ranged from 65 ( ' A ' ) to 126 . \ param styleBuffer this buffer works in parallel to the text buffer . For every character in the text buffer the stye buffer has a byte at the same offset that contains an index into an array of possible styles .
void Fl_Text_Display::highlight_data(Fl_Text_Buffer *styleBuffer,
                                     const Style_Table_Entry *styleTable,
                                     int nStyles, char unfinishedStyle,
                                     Unfinished_Style_Cb unfinishedHighlightCB,
                                     void *cbArg ) {
  mStyleBuffer = styleBuffer;
  mStyleTable = styleTable;
  mNStyles = nStyles;
  mUnfinishedStyle = unfinishedStyle;
  mUnfinishedHighlightCB = unfinishedHighlightCB;
  mHighlightCBArg = cbArg;
  mColumnScale = 0;
  mStyleBuffer->canUndo(0);
  damage(FL_DAMAGE_EXPOSE);
}
void Fl_Text_Display :: highlight_data ( Fl_Text_Buffer * styleBuffer , const Style_Table_Entry * styleTable , int nStyles , char unfinishedStyle , Unfinished_Style_Cb unfinishedHighlightCB , void * cbArg ) { mStyleBuffer = styleBuffer ; mStyleTable = styleTable ; mNStyles = nStyles ; mUnfinishedStyle = unfinishedStyle ; mUnfinishedHighlightCB = unfinishedHighlightCB ; mHighlightCBArg = cbArg ; mColumnScale = 0 ; mStyleBuffer -> canUndo ( 0 ) ; damage ( FL_DAMAGE_EXPOSE ) ; }
\brief Attach (or remove) highlight information in text display and redisplay.
\ brief Attach ( or remove ) highlight information in text display and redisplay .