# Copy Codeblocks Theme Component

**URL:** <https://meta.discourse.org/t/copy-codeblocks-theme-component/147441>\
**Category:** Theme component\
**Tags:** deprecated\
**Created:** [April 9, 2020, 5:32pm UTC](https://meta.discourse.org/t/copy-codeblocks-theme-component/147441 "2020-04-09T17:32:04Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [April 11, 2020, 12:08am UTC](https://meta.discourse.org/t/copy-codeblocks-theme-component/147441/19 "2020-04-11T00:08:21Z")

</div>

Minor Bug: the “copy” text can show up in a quote. (Much more minor than the previous post.)

> [@pfaffman](#):
>
> copy
> 
> ```plaintext
> while true; do mdadm --detail /dev/md1|grep "Rebuild Status" ; sleep 10;done
> 
> ```
> 
> ### Get Power On time for all drives
> 
> copy
> 
> ```plaintext
> for x in a b c d ; do smartctl -a /dev/sd$x|grep Power_On; done
> 
> ```

The `button.copy-cmd` needs to be excluded from the quote. Applying `user-select: none` in the CSS fixes Ctrl-C but not the quote functionality.

---

_[View the full topic](https://meta.discourse.org/t/copy-codeblocks-theme-component/147441)._
