# Formatting Toolbar for selections

**URL:** https://community.silverbullet.md/t/formatting-toolbar-for-selections/4010
**Category:** Plugs and Libraries
**Created:** [April 5, 2026, 1:42pm UTC](https://community.silverbullet.md/t/formatting-toolbar-for-selections/4010 "2026-04-05T13:42:36Z")
**Posts on this page:** 1
**Showing post:** 30

<div class="post-metadata">

### Author: ![Mr.Red](https://community.silverbullet.md/user_avatar/community.silverbullet.md/mr.red/32/821_2.png) [@Mr.Red](https://community.silverbullet.md/u/Mr.Red)
#### Post date: [August 28, 2026, 8:34am UTC](https://community.silverbullet.md/t/formatting-toolbar-for-selections/4010/30 "2026-08-28T08:34:08Z")

</div>

# Update

- ✅ Added support for custom buttons and marker/delimiters for third party libraries, for example for [Copyable](https://community.silverbullet.md/t/make-text-copy-on-click/4267) by @thepaperpilot

```lua
config.set("FormattingToolbar", {
    enabled = true,

 -- ... the rest of the config

 -- the example to add a formatting button for copyable library
    customButtons = {
        {
            name = "Text: Copy Block", -- unique, becomes the command name
            key = "Copy", -- tooltip text (optional, defaults to name)
            start = "[copy]", -- starting marker delimiter
            stop = "[/copy]", -- "end" is a Lua reserved word, hence "stop"
            icon = [[<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>]],
            show = true -- optional, defaults to true
        },
    }
})

```

---

_[View the full topic](https://community.silverbullet.md/t/formatting-toolbar-for-selections/4010)._
