Update text high lighting for compatibility with code mirror 2 and 3