I forget where I saw it, but one forum had a neat bit of code that switched between code formatted for reading and code formatted for C&Ping. You would view it for reading, with line numbers, and clicking a button would change it to copyable code and select all so you could just <Ctrl> + C for the copy.