I noticed that marking, copying and pasting code snippets in StackOverflow is a bit cumbersome - even if it is only one line of code, as in the following exampleexample (there is a horizontal scrollbar - try to copy the entire line and you'll see what I mean):
How about adding a "Copy to clipboard" button, like it is done for example in Microsoft's MSDN and some other developer sites?
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 does it like this, which I've tested with IE and with Chrome successfully:
Please consider, if some of you don't need to copy the entire code, it is still useful for many others.