* Add callbacks to update regex and text highlighting