# Copying Code-Fenced Text

**URL:** https://meta.discourse.org/t/copying-code-fenced-text/102390
**Category:** Feature
**Created:** [November 20, 2018, 1:25pm UTC](https://meta.discourse.org/t/copying-code-fenced-text/102390 "2018-11-20T13:25:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![RobMeade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robmeade/32/109119_2.png) [@RobMeade](https://meta.discourse.org/u/RobMeade)
#### Post date: [November 20, 2018, 1:25pm UTC](https://meta.discourse.org/t/copying-code-fenced-text/102390/1 "2018-11-20T13:25:26Z")

</div>

Hi,

Could code fencing be enhanced to provide a _Copy to Clipboard_ feature, currently, a CTRL+A selects all of the text in the whole window, not just the text in the fenced area when it’s focused.

Perhaps something like this in the bottom right and corner?

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/1/61b2c0ab2cf1b7c9416f5cfc0f872f5d8e442663.png)

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [January 8, 2022, 11:59pm UTC](https://meta.discourse.org/t/copying-code-fenced-text/102390/21 "2022-01-08T23:59:08Z")

</div>

The “copy to clipboard” function has been added to the Discourse core a long time ago. There is no need to install a plugin for it.

In your site settings search for `show copy button on codeblocks `.

---

<div class="post-metadata">

### Author: ![amotl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amotl/32/109873_2.png) [@amotl](https://meta.discourse.org/u/amotl)
#### Post date: [January 9, 2022, 9:47am UTC](https://meta.discourse.org/t/copying-code-fenced-text/102390/22 "2022-01-09T09:47:48Z")

</div>

Hi Daniela,

> [@dax](#):
>
> The “copy to clipboard” function has been added to the Discourse core a long time ago. There is no need to install a plugin for it.

Oh, I did not know that and I am feeling a bit silly now ;]. Thank you for making me aware of that, it works like a charm.

With kind regards,  
Andreas.
