# Copy to Clipboard for Code Snippet in CMS Rich Text

**URL:** https://forum.finsweet.com/t/copy-to-clipboard-for-code-snippet-in-cms-rich-text/3273
**Category:** Attributes
**Tags:** copyclip
**Created:** [August 12, 2024, 4:14pm UTC](https://forum.finsweet.com/t/copy-to-clipboard-for-code-snippet-in-cms-rich-text/3273 "2024-08-12T16:14:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![shenye](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/shenye/32/531_2.png) [@shenye](https://forum.finsweet.com/u/shenye)
#### Post date: [August 12, 2024, 4:14pm UTC](https://forum.finsweet.com/t/copy-to-clipboard-for-code-snippet-in-cms-rich-text/3273/1 "2024-08-12T16:14:41Z")

</div>

I’m building a blog post, I want my visitor can copy my code.

Attribute [**Code Highlight**] → no Copy to Clipboard

Attribute [**Copy to Clipboard**] → not working in CMS rich text

What would be the best practise for this use case?

---

<div class="post-metadata">

### Author: ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)
#### Post date: [August 13, 2024, 9:23am UTC](https://forum.finsweet.com/t/copy-to-clipboard-for-code-snippet-in-cms-rich-text/3273/2 "2024-08-13T09:23:03Z")

</div>

hey @shenye! Can you please share a link?
