The easiest way for people to copy codes from your site (codes you WANT them to copy) is to use a textarea.

The code for a textarea is simply:

<textarea>CODE GOES HERE</textarea>


EXAMPLE