# Copy code shortcut

**URL:** <https://discourse.processing.org/t/copy-code-shortcut/660>\
**Category:** Site Feedback\
**Created:** [June 3, 2018, 4:01am UTC](https://discourse.processing.org/t/copy-code-shortcut/660 "2018-06-03T04:01:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [June 3, 2018, 4:01am UTC](https://discourse.processing.org/t/copy-code-shortcut/660/1 "2018-06-03T04:01:48Z")

</div>

It would be great to have a button that allows to copy the code on a code block when browsing a post. Possible?

Kf

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [June 3, 2018, 4:29am UTC](https://discourse.processing.org/t/copy-code-shortcut/660/2 "2018-06-03T04:29:04Z")

</div>

On the still active previous forum, I can simply double-click for it to highlight the whole posted code! 🤑

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [June 4, 2018, 9:21pm UTC](https://discourse.processing.org/t/copy-code-shortcut/660/3 "2018-06-04T21:21:20Z")

</div>

It looks like this feature is available as a theme component, here:

> **[COPY option for code blocks in Discourse](https://meta.discourse.org/t/copy-option-for-code-blocks-in-discourse/60961/10)**
>
> Hi all, this has been uploaded to GitHub as a theme: I have updated the CSS so it can work more universally. The first problem that needs to be solved here is to set the background colour of .bd-clipboard to be the same as pre \> code, but...

> **[Daemonite/discourse-clipboard](https://github.com/daemonite/discourse-clipboard)**
>
> Add a COPY TO CLIPBOARD feature for Discourse code blocks - Daemonite/discourse-clipboard

I don’t have the ability to install components into the website, but from a quick glance it looks fairly straightforward – if it doesn’t add too much maintenance overhead fro admins @ProcessingOrg

---

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [July 25, 2018, 6:01am UTC](https://discourse.processing.org/t/copy-code-shortcut/660/4 "2018-07-25T06:01:47Z")

</div>

Hi everyone,

I just wanted to open a thread to ask the same question (that similar topic thingy on the right of the edition window is really helpful 🙂).

Anyway, it would be really practical to have a button like this!
