# Add markdown to selected text

**URL:** https://meta.discourse.org/t/add-markdown-to-selected-text/357385
**Category:** Feature
**Tags:** composer
**Created:** [March 15, 2025, 9:38am UTC](https://meta.discourse.org/t/add-markdown-to-selected-text/357385 "2025-03-15T09:38:14Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [March 15, 2025, 10:39am UTC](https://meta.discourse.org/t/add-markdown-to-selected-text/357385/7 "2025-03-15T10:39:20Z")

</div>

> [@alltiagocom](#):
>
> And why do you have the Chapter option and I don’t? 😕

The correct names are inline code and code block.

``inline code``

````plaintext
```
code block
```

````

There’s a single button (and shortcut) for both preformatted text types.

If you haven’t selected any text, it will create an inline code.  
If your selection is no more than 1 line, it will create an inline code.  
If your selection contains a line break, it will create a code block.

> [@alltiagocom](#):
>
> Is the toolbar and cogwheel customizable, maybe?

As far as I know, and unfortunately, not from the interface.  
See:

> [@How to customize the composer toolbar?](https://meta.discourse.org/t/how-to-customize-the-composer-toolbar/323577/3):
>
> There’s no setting to configure the toolbar, but it’s possible through themes and plugins. It would be nice to have this feature, so I’m going to re-categorize it as a feature request. For now, buttons can be hidden with CSS… for example: .d-editor-button-bar { .local-dates { // hides the date button display: none; } } or to hide an option from the gear menu .toolbar-popup-menu-options { [data-name="Build Poll"] { display: none; } } With CSS it’s also fairly straightforw…

---

_[View the full topic](https://meta.discourse.org/t/add-markdown-to-selected-text/357385)._
