Docs on website: Copying example code that is in scrolling box

Docs on website: Copying example code that is in scrolling box

On
if you click the "options" tab and then expand the first "buttons" option, the example code appears in a box with a horizontal scroll bar.
 
I am trying to copy all the code in the box but I cannot figure out how to select all the code. CTL-A or dragging across the text does not work.
 
Any tips appreciated.
 
Peter