CodeText callback