Copy code block to clip board

Post with code blocks can now click on a clipboard button in the upper right of the code block to copy the code to the clipboard.

Example code block.
This code is bookend with with ```prolog and ``` to make it a code block.

verb('Hello').
noun('World').

msg :-
    verb(Verb),
    noun(Noun),
    format('~w, ~w!',[Verb,Noun]).

If you mouse over the code block above you will see a clipboard button in the upper right, e.g

image

and if you click on the clipboard button the code will be copied to your local clipboard.

4 Likes