after generating a code, select the text, for easy cut-and-paste