Backport PR#4233 to 1.8

Adds copybutton that toggles ">>>" in code samples.
Seems to work well with the dev docs so 1.8 should get them too.