# Copy code block to clip board

**URL:** <https://swi-prolog.discourse.group/t/copy-code-block-to-clip-board/2243>\
**Category:** Discourse forum Feedback\
**Tags:** feature\
**Created:** [April 28, 2020, 4:43pm UTC](https://swi-prolog.discourse.group/t/copy-code-block-to-clip-board/2243 "2020-04-28T16:43:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://swi-prolog.discourse.group/u/EricGT)\
**Post date:** [April 28, 2020, 4:43pm UTC](https://swi-prolog.discourse.group/t/copy-code-block-to-clip-board/2243/1 "2020-04-28T16:43:41Z")

</div>

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.

```prolog
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](https://global.discourse-cdn.com/free1/uploads/swiprolog/original/1X/9d39148c82f9918d01e0d30f8bd81bddb240fb76.png)

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