I noticed that marking, copying and pasting code snippets in StackOverflow is a bit cumbersome. 

How about adding a "Copy to clipboard" button, like it is done for example in [Microsoft's MSDN](https://msdn.microsoft.com/en-us/library/windows/desktop/system.exception.data(v=vs.110).aspx) and some other developer sites?

[![enter image description here][1]][1]

In this example, after clicking "allow access" once, the entire source code has been transferred to the clipboard and can now simply be pasted by using `Ctrl+V` into the source editor of your choice.

**N.B.** While this MSDN example seam to work in IE/Edge only, [CodeProject](http://www.codeproject.com/Articles/1042710/Solving-nonlinear-equation-systems-with-analytical) does it like this, which I've tested with IE and with Chrome successfully:

[![enter image description here][2]][2]

Please consider, if some of you don't need to copy the entire code, it is still useful for many others.

  [1]: https://i.sstatic.net/SwfqQ.jpg
  [2]: https://i.sstatic.net/W9SVn.jpg