# With preformatted text, why are some letters red and numbers blue?

**URL:** https://meta.discourse.org/t/with-preformatted-text-why-are-some-letters-red-and-numbers-blue/284970
**Category:** Support
**Created:** [November 9, 2023, 4:58pm UTC](https://meta.discourse.org/t/with-preformatted-text-why-are-some-letters-red-and-numbers-blue/284970 "2023-11-09T16:58:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Gavin\_Hudson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gavin_hudson/32/328449_2.png) [@Gavin\_Hudson](https://meta.discourse.org/u/Gavin_Hudson)
#### Post date: [November 9, 2023, 4:58pm UTC](https://meta.discourse.org/t/with-preformatted-text-why-are-some-letters-red-and-numbers-blue/284970/1 "2023-11-09T16:58:03Z")

</div>

When I select text and then hit the preformatted text button in my company’s demo Discourse forum (hosted by Discourse), the default formatting is three apostrophes before and three after the text. However, when I hit the preformatted text button in [meta.discourse.org](http://meta.discourse.org), there is only one apostrophe before and after the text and all text is black.

In my company’s trial Discourse, three apostrophes make certain letters red and all numbers blue. There is also a scroll bar below the text.  
However, in [meta.discourse.org](http://meta.discourse.org), the same three apostrophes don’t affect the colour of the text.

Here’s how it looks in my company’s trial Discourse forum:

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/6/c/f6cca3b20cfbd80602b08099838b7659916c4726.png)

Here’s how it looks here on [meta.discourse.org](http://meta.discourse.org):

`abcdefghijklmnopqrstuvwxyz 0123456789`  
`abcdefghijklmnopqrstuvwxyz 0123456789`

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/b/f/8bf15b92da72c437ce1af7bc611f2aaba470af10.png)

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [November 9, 2023, 5:00pm UTC](https://meta.discourse.org/t/with-preformatted-text-why-are-some-letters-red-and-numbers-blue/284970/2 "2023-11-09T17:00:55Z")

</div>

The code block is formatted using the `default code lang` Site Setting. On meta, we have that set to `text`.

You can override that per block by specifying the language after the initial fence.

---

<div class="post-metadata">

### Author: ![Gavin\_Hudson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gavin_hudson/32/328449_2.png) [@Gavin\_Hudson](https://meta.discourse.org/u/Gavin_Hudson)
#### Post date: [November 9, 2023, 5:02pm UTC](https://meta.discourse.org/t/with-preformatted-text-why-are-some-letters-red-and-numbers-blue/284970/3 "2023-11-09T17:02:58Z")

</div>

Thank you again, @supermathie ! Now that I know this, I will explore more options in [Select the programming language used in code blocks](https://meta.discourse.org/t/select-the-programming-language-used-in-code-blocks/19247).

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 9, 2023, 5:03pm UTC](https://meta.discourse.org/t/with-preformatted-text-why-are-some-letters-red-and-numbers-blue/284970/4 "2023-12-09T17:03:15Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
