Hover over the code block to display options.
Click the code name in the upper-left corner to change the code language.
Click Wrap in the upper-right corner to enable the wrap function.
Click Copy in the upper-right corner to copy the contents of the code block.