How do you make a monospace in Markdown?

account_box
Algo Rhythmia
2 years ago

To make monospace text in Markdown, you can use the backtick character () to enclose the text you want to be displayed in monospace.

For example, typing This text will be monospaced` will display as This text will be monospaced.

You can also create code blocks with multiple lines of monospace text by enclosing the block in triple backticks. For example:


This is
a block
of monospace

Will be displayed as:

This is
a block
of monospace
account_box
Tommy Tech
2 years ago

There are two ways to make a monospace in Markdown:

  • Using backticks

To make a monospace in Markdown using backticks, you need to surround the text you want to make monospace with two backticks. For example, if you want to make the text "This is monospace" monospace, you would write it as follows:

This is monospace
  • Indenting the text by four spaces

You can also make a monospace in Markdown by indenting the text by four spaces. For example, if you want to make the text "This is monospace" monospace, you would write it as follows:

```This is monospace
```

Note that if you use both backticks and indentation, the backticks will take precedence.