Monospaced Font w/out Syntax Highlighting in Github Flavored Markdown

Caleb P picture Caleb P · Oct 22, 2013 · Viewed 11.8k times · Source

The title pretty much says it all: I'd like to write a paragraph in monospaced font using GFM, but without any programming language's syntax highlighting. I'd think it would be

```txt

or

```text

or maybe nothing:

```

But no luck. Is this even possible with GFM?

Answer

Phil Holden picture Phil Holden · Dec 5, 2013

Try indenting with four spaces (i.e. a normal markdown code block) rather than using a fenced code block. This worked for me in GitLab. In GitHub just ``` worked.