There was an easy way before they changed the forum a short while back. You could click on EDIT and copy the code from there and paste it with its proper format. But now only administrators are allowed to enter the EDIT area .