I try to write a sql editor with the RichTextBox control binding to a sql source. I have write my own TxtFormatProvider to colorize the keyword. It's work fine when the document is import but I don't understand how to invoke the FormatProvider when the text change but user input. I think i need to process all the content of the sql editor to have the right token color.