This question already has an answer here:
I would like to post part or all of a Terminal result (i.e. Sudo apt get update). How does one capture some or all of the data in the Terminal and paste it into Ask Ubuntu? Also, if there is a way, will it have the same appearance as the Terminal text (font, line returns etc)?