# Copy button on inline code and block code

**URL:** <https://discourse.joplinapp.org/t/copy-button-on-inline-code-and-block-code/5214>\
**Category:** Features\
**Created:** [16 January 2020 17:32 UTC](https://discourse.joplinapp.org/t/copy-button-on-inline-code-and-block-code/5214 "2020-01-16T17:32:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![wjrivera](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/wjrivera/32/2326_2.png) [@wjrivera](https://discourse.joplinapp.org/u/wjrivera)\
**Post date:** [16 January 2020 17:32 UTC](https://discourse.joplinapp.org/t/copy-button-on-inline-code-and-block-code/5214/1 "2020-01-16T17:32:36Z")

</div>

Is there a functionality where you can copy code from inside a block code or inline code? I currently use Boostnote which does have that feature, but their newer version did away with that.  
 ![copy_inline_code](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/2X/f/fe1267550c29539522b2e0c104c08ce336137f31.png)

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [16 January 2020 20:53 UTC](https://discourse.joplinapp.org/t/copy-button-on-inline-code-and-block-code/5214/2 "2020-01-16T20:53:03Z")

</div>

Nope, Joplin does not have this feature.

---

<div class="post-metadata">

**Author:** ![aorith](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/aorith/32/2243_2.png) [@aorith](https://discourse.joplinapp.org/u/aorith)\
**Post date:** [29 January 2020 17:29 UTC](https://discourse.joplinapp.org/t/copy-button-on-inline-code-and-block-code/5214/3 "2020-01-29T17:29:07Z")

</div>

Hi,

Any chance that this feature could be implemented?  
It would make life easier when copy-pasting big codeblocks.

An icon to copy or just an option in the right click context menu would suffice.

Thanks!

---

<div class="post-metadata">

**Author:** ![bedwardly-down](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/bedwardly-down/32/3236_2.png) [@bedwardly-down](https://discourse.joplinapp.org/u/bedwardly-down)\
**Post date:** [29 January 2020 17:51 UTC](https://discourse.joplinapp.org/t/copy-button-on-inline-code-and-block-code/5214/4 "2020-01-29T17:51:56Z")

</div>

@aorith

> <https://github.com/laurent22/joplin/issues/2383>
>
> When a code block is displayed, add a "Copy" button in the top-right hand corner. Clicking on it should copy the...

---

<div class="post-metadata">

**Author:** ![aorith](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/aorith/32/2243_2.png) [@aorith](https://discourse.joplinapp.org/u/aorith)\
**Post date:** [29 January 2020 18:15 UTC](https://discourse.joplinapp.org/t/copy-button-on-inline-code-and-block-code/5214/5 "2020-01-29T18:15:44Z")

</div>

@bedwardly-down

Thanks mate, I totally missed that.

---

<div class="post-metadata">

**Author:** ![bedwardly-down](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/bedwardly-down/32/3236_2.png) [@bedwardly-down](https://discourse.joplinapp.org/u/bedwardly-down)\
**Post date:** [29 January 2020 18:16 UTC](https://discourse.joplinapp.org/t/copy-button-on-inline-code-and-block-code/5214/6 "2020-01-29T18:16:39Z")

</div>

You’re fine. It just popped up out of nowhere very recently and most people missed it. Ha

---

<div class="post-metadata">

**Author:** ![dpoulton](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/dpoulton/32/29723_2.png) [@dpoulton](https://discourse.joplinapp.org/u/dpoulton)\
**Post date:** [29 January 2020 21:57 UTC](https://discourse.joplinapp.org/t/copy-button-on-inline-code-and-block-code/5214/7 "2020-01-29T21:57:17Z")

</div>

And you are not the only one requesting this!

> [@Easy way to copy code sections in mobile app](https://discourse.joplinapp.org/t/easy-way-to-copy-code-sections-in-mobile-app/5447):
>
> In the mobile app, it would be really nice to have a copy button next to each code block to quickly copy code. As an alternative, do something so if we “Select All”, it select the entire code block instead of the entire note.

---

<div class="post-metadata">

**Author:** ![\_vg](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/_vg/32/27067_2.png) [@\_vg](https://discourse.joplinapp.org/u/_vg)\
**Post date:** [25 October 2025 08:41 UTC](https://discourse.joplinapp.org/t/copy-button-on-inline-code-and-block-code/5214/8 "2025-10-25T08:41:21Z")

</div>

It's great that we now have a plugin for code blocks, but we still need one for inline code.

There is [Joplin Plugins - Click to copy](https://joplinapp.org/plugins/plugin/com.joplin.click.to.copy/) but it requires a non stand delimiter ([[…]]) and does not work for standard inline code (backquotes).

What we need is a solution so that a single click on any inline code (single backquotes) copies its content to clipboard.

---

<div class="post-metadata">

**Author:** ![\_vg](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/_vg/32/27067_2.png) [@\_vg](https://discourse.joplinapp.org/u/_vg)\
**Post date:** [3 November 2025 19:14 UTC](https://discourse.joplinapp.org/t/copy-button-on-inline-code-and-block-code/5214/9 "2025-11-03T19:14:39Z")

</div>

Big news, there is now a one click copy solution for inline code as well!

It was implemented in the very recent 1.3.3 version of [https://joplinapp.org/plugins/plugin/com.joplin.click.to.copy/](https://joplinapp.org/plugins/plugin/com.joplin.click.to.copy/ "https://joplinapp.org/plugins/plugin/com.joplin.click.to.copy/")

Simply set delimiters as backquotes instead of default [[and]]. They now work correctly.

Kudos to @ntczkjfg

Relevant links:

> [@Plugin: Click-to-Copy spans](https://discourse.joplinapp.org/t/plugin-click-to-copy-spans/45566/8):
>
> @bwat47 You'll find that the ability to change that to something that suits you better is already available in the plugin settings

> <https://github.com/ntczkjfg/joplin-plugin-click-to-copy-span/issues/2>
>
> In my Joplin notes I often have inline code like \`this one\` using backquotes, an…d I want to very easily copy them to paste elsewhere, but they require several clicks to copy, quite annoying. This is where your plugin can shine.
> 
> However the default delimiters \`\[\[...\]\]\` raise two issues for me:
> \- first, I would need to manually update all my existing codes to them (in other words, not retroactive)
> \- second, if one day I drop this plugin then I will have to convert all those manually back to backquotes (in other words, not future proof)
> 
> I tried to set backquotes as delimiters, but it completely breaks the feature, nothing is clickable anymore. That was expected because I guess it conflicts with existing inline code parsing.
> 
> Do you have a suggestion maybe?
> 
> Your work on this plugin is very appreciated. 👍

---

<div class="post-metadata">

**Author:** ![bwat47](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/bwat47/32/25073_2.png) [@bwat47](https://discourse.joplinapp.org/u/bwat47)\
**Post date:** [3 November 2025 22:05 UTC](https://discourse.joplinapp.org/t/copy-button-on-inline-code-and-block-code/5214/10 "2025-11-03T22:05:12Z")

</div>

nice, being able to use backticks for this is handy!

---

<div class="post-metadata">

**Author:** ![ntczkjfg](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/ntczkjfg/32/25826_2.png) [@ntczkjfg](https://discourse.joplinapp.org/u/ntczkjfg)\
**Post date:** [5 November 2025 21:58 UTC](https://discourse.joplinapp.org/t/copy-button-on-inline-code-and-block-code/5214/11 "2025-11-05T21:58:07Z")

</div>

As an update to this: I just pushed version 1.4.0. You can still set the start and end tokens to backticks if you prefer - but now, in settings, there are options to directly make inline code spans click-to-copy without having to change your tokens.

For anyone who wants _all_ inline code spans to be click-to-copy, I recommend this over changing the tokens - it preserves the functionality of the plugin for other applications and is also a little cleaner visually with the CSS.
