Clipboard Integration

This is an example of Katacoda's clipboard integration.

The following will copy the text into the clipboard. This is useful if users need to interactive with a web UI.

docker

Within the Markdown step, you would write:

`docker`{{copy}}

Katacoda supports copying code snippets or longer text into the clipboard by adding the attribute data-target.

Copy Me To The Clipboard!!

This is created by embedded HTML into the Markdown.

<pre class="file" data-target="clipboard">
Copy Me To The Clipboard!!
</pre>

Note Without the class="file" it will not display the clipboard functionality. For example:

Not a file

This was created by the HTML:

<pre data-target="clipboard">
Not a file
</pre>