# Add a "fixed-width/monospace font in composer" setting

**URL:** https://meta.discourse.org/t/add-a-fixed-width-monospace-font-in-composer-setting/327900
**Category:** Feature
**Tags:** composer
**Created:** [September 24, 2024, 11:20am UTC](https://meta.discourse.org/t/add-a-fixed-width-monospace-font-in-composer-setting/327900 "2024-09-24T11:20:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Andrew15-5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrew15-5/32/451429_2.png) [@Andrew15-5](https://meta.discourse.org/u/Andrew15-5)
#### Post date: [September 24, 2024, 11:20am UTC](https://meta.discourse.org/t/add-a-fixed-width-monospace-font-in-composer-setting/327900/1 "2024-09-24T11:20:29Z")

</div>

A more general/global version of [Activate monospace font inside codeblocks in the post editor](https://meta.discourse.org/t/activate-monospace-font-inside-codeblocks-in-the-post-editor/206533). In short, I want to have the same feature as (for example) GitHub has:

> ## Markdown editor font preference
> 
> * * *
> 
> Font preference for plain text editors that support Markdown styling (e.g. pull request and issue descriptions, comments.)
> 
> ✅ **Use a fixed-width (monospace) font when editing Markdown**

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/3/2/f326e032516d9eb738d5c5c12527ca8cb9dc7081.png)

Which in practice looks like this:

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/0/b/30b8f4d68759fa36eae2c2eb5952f5a9ec0cb0cb.png)

Having a workaround of having a [third-party browser extension](https://github.com/openstyles/stylus) with a custom CSS per page/website isn’t ideal.

The setting will nicely go into `https://meta.discourse.org/u/<user>/preferences/interface`:

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/0/5/e05b021521478874bbbc219c073c0203736691d8.png)

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [September 24, 2024, 12:45pm UTC](https://meta.discourse.org/t/add-a-fixed-width-monospace-font-in-composer-setting/327900/2 "2024-09-24T12:45:11Z")

</div>

But… when using code fences, the font is always monospace. What I don’t understand now? Should the composer show monospace **before** ending the code fence? If so… why? Wouldn’t it be easier to put the code fences and then start writing between those?

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [September 24, 2024, 2:43pm UTC](https://meta.discourse.org/t/add-a-fixed-width-monospace-font-in-composer-setting/327900/3 "2024-09-24T14:43:52Z")

</div>

I believe they’re asking for a setting for the composer itself to be in a monospace font, not specifically code fences.

---

<div class="post-metadata">

### Author: ![Andrew15-5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrew15-5/32/451429_2.png) [@Andrew15-5](https://meta.discourse.org/u/Andrew15-5)
#### Post date: [September 24, 2024, 3:18pm UTC](https://meta.discourse.org/t/add-a-fixed-width-monospace-font-in-composer-setting/327900/4 "2024-09-24T15:18:20Z")

</div>

"A more general/global version of [Activate monospace font inside codeblocks in the post editor](https://meta.discourse.org/t/activate-monospace-font-inside-codeblocks-in-the-post-editor/206533)" here means that I don’t want a monospace font just for a code block but for the whole composer textarea, hence the title (“monospace font in composer”).
