# Copy to Clipboard for Code Widget(?)

**URL:** <https://community.silverbullet.md/t/copy-to-clipboard-for-code-widget/177>\
**Category:** General\
**Created:** [February 16, 2024, 6:37am UTC](https://community.silverbullet.md/t/copy-to-clipboard-for-code-widget/177 "2024-02-16T06:37:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AresScorpio](https://community.silverbullet.md/user_avatar/community.silverbullet.md/aresscorpio/32/139_2.png) [@AresScorpio](https://community.silverbullet.md/u/AresScorpio)\
**Post date:** [February 16, 2024, 6:37am UTC](https://community.silverbullet.md/t/copy-to-clipboard-for-code-widget/177/1 "2024-02-16T06:37:02Z")

</div>

Hi there,  
I was just wondering if anyone else likes the idea of having a copy button in the right corner of a code block? I have seen it on many websites and especially for my setup documentation it would be nice to be able to copy code blocks to clipboard directly.

I found this feature request that was moved to the backlog [Feature request: Copy button for code snippets · Issue #345 · silverbulletmd/silverbullet · GitHub](https://github.com/silverbulletmd/silverbullet/issues/345)

What are your thoughts on that?

If there are some People here that would like to see this feature coming, I guess my rookie web dev skills could help creating this feature.

---

<div class="post-metadata">

**Author:** ![paletochen](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/p/cdc98d/32.png) [@paletochen](https://community.silverbullet.md/u/paletochen)\
**Post date:** [February 16, 2024, 7:46am UTC](https://community.silverbullet.md/t/copy-to-clipboard-for-code-widget/177/2 "2024-02-16T07:46:35Z")

</div>

I would use this feature daily too, as my personal instance is full with hundreds of code snippets that I use in the terminal on a regular basis

---

<div class="post-metadata">

**Author:** ![Maarrk](https://community.silverbullet.md/user_avatar/community.silverbullet.md/maarrk/32/56_2.png) [@Maarrk](https://community.silverbullet.md/u/Maarrk)\
**Post date:** [February 16, 2024, 2:05pm UTC](https://community.silverbullet.md/t/copy-to-clipboard-for-code-widget/177/3 "2024-02-16T14:05:20Z")

</div>

Conveniently, there’s already a relevant icon in the set used for the top bar:

> **[Feather – Simply beautiful open source icons](https://feathericons.com/?query=copy)**
>
> Feather is a collection of simply beautiful open source icons. Each icon is designed on a 24x24 grid with an emphasis on simplicity, consistency and readability.

Good luck with the feature, this is a really nice codebase to work in. Far from the usual web dev mess, especially around Node JS.

---

<div class="post-metadata">

**Author:** ![Maarrk](https://community.silverbullet.md/user_avatar/community.silverbullet.md/maarrk/32/56_2.png) [@Maarrk](https://community.silverbullet.md/u/Maarrk)\
**Post date:** [February 23, 2024, 3:41pm UTC](https://community.silverbullet.md/t/copy-to-clipboard-for-code-widget/177/4 "2024-02-23T15:41:43Z")

</div>

For anyone in this thread, this was just added by @joekrill [Add copy to clipboard button to code blocks by joekrill · Pull Request #735 · silverbulletmd/silverbullet](https://github.com/silverbulletmd/silverbullet/pull/735)
