# Add button to select all text in a preformatted block

**URL:** https://meta.discourse.org/t/add-button-to-select-all-text-in-a-preformatted-block/30878
**Category:** Feature
**Tags:** completed
**Created:** [July 8, 2015, 2:35am UTC](https://meta.discourse.org/t/add-button-to-select-all-text-in-a-preformatted-block/30878 "2015-07-08T02:35:22Z")
**Posts on this page:** 1
**Showing post:** 13

<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 8, 2022, 8:55pm UTC](https://meta.discourse.org/t/add-button-to-select-all-text-in-a-preformatted-block/30878/13 "2022-01-08T20:55:09Z")

</div>

Hi,

also apologies for resurrecting such an old thread, but I believe it would make sense to give you an update on this matter, for all people discovering this discussion when searching for a solution.

In this manner, I would like to refer to the content within another discussion I just added.

[https://meta.discourse.org/t/copying-code-fenced-text/102390/20](https://meta.discourse.org/t/copying-code-fenced-text/102390/20)

#### Edit

@dax just made me aware about the fact that this feature is already in Discourse core. Thank you!

> [@Copying Code-Fenced Text](https://meta.discourse.org/t/copying-code-fenced-text/102390/21):
>
> 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 .

---

_[View the full topic](https://meta.discourse.org/t/add-button-to-select-all-text-in-a-preformatted-block/30878)._
