# How to write three ticks (\`) in post content?

**URL:** https://meta.discourse.org/t/how-to-write-three-ticks-in-post-content/61240
**Category:** Support
**Created:** [4월 19, 2017, 10:03오전 UTC](https://meta.discourse.org/t/how-to-write-three-ticks-in-post-content/61240 "2017-04-19T10:03:07Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![Sujan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sujan/32/70979_2.png) [@Sujan](https://meta.discourse.org/u/Sujan)
#### Post date: [4월 19, 2017, 10:03오전 UTC](https://meta.discourse.org/t/how-to-write-three-ticks-in-post-content/61240/1 "2017-04-19T10:03:07Z")

</div>

I want to educate some users on using code fences for posting code.  
How can I post three ticks (```) as text without the “after one tick mark text as preformatted”?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [4월 19, 2017, 10:05오전 UTC](https://meta.discourse.org/t/how-to-write-three-ticks-in-post-content/61240/2 "2017-04-19T10:05:21Z")

</div>

Like this?

````
```

````

Four spaces, then three ticks. Check out [Markdown Reference](http://commonmark.org/help/) for a reference as well!

---

<div class="post-metadata">

### Author: ![Sujan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sujan/32/70979_2.png) [@Sujan](https://meta.discourse.org/u/Sujan)
#### Post date: [4월 19, 2017, 10:11오전 UTC](https://meta.discourse.org/t/how-to-write-three-ticks-in-post-content/61240/3 "2017-04-19T10:11:00Z")

</div>

Actually directly inside a line of text, so I can post something like

> I edited your code to display better. Please use `(three ticks)` in the line in front and after your code to enable this formatting yourself. Thanks.)

But with the three ticks instead of “(three ticks)” of course.

(Man is it hard to describe this if every try to actually type it gets removed ;))

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [4월 19, 2017, 10:14오전 UTC](https://meta.discourse.org/t/how-to-write-three-ticks-in-post-content/61240/4 "2017-04-19T10:14:01Z")

</div>

It’s very, very tricky to get that right inline. Another way is backslash

```

```
\`\`\`

```

---

<div class="post-metadata">

### Author: ![Sujan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sujan/32/70979_2.png) [@Sujan](https://meta.discourse.org/u/Sujan)
#### Post date: [4월 19, 2017, 10:16오전 UTC](https://meta.discourse.org/t/how-to-write-three-ticks-in-post-content/61240/5 "2017-04-19T10:16:36Z")

</div>

Testing: ```

That works, thanks.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [4월 19, 2017, 10:16오전 UTC](https://meta.discourse.org/t/how-to-write-three-ticks-in-post-content/61240/6 "2017-04-19T10:16:47Z")

</div>

Good luck with that 😉

---

<div class="post-metadata">

### Author: ![Sujan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sujan/32/70979_2.png) [@Sujan](https://meta.discourse.org/u/Sujan)
#### Post date: [4월 19, 2017, 10:18오전 UTC](https://meta.discourse.org/t/how-to-write-three-ticks-in-post-content/61240/7 "2017-04-19T10:18:34Z")

</div>

To make it even more complicated:  
Is there a way to preformat the three ticks now in line? So we have this nice grey background to make the command stand out…

---

<div class="post-metadata">

### Author: ![clapmyhands](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clapmyhands/32/69810_2.png) [@clapmyhands](https://meta.discourse.org/u/clapmyhands)
#### Post date: [4월 19, 2017, 10:52오전 UTC](https://meta.discourse.org/t/how-to-write-three-ticks-in-post-content/61240/8 "2017-04-19T10:52:55Z")

</div>

Try this `````  
Using so:  
`<code>\````  
Edit: forgot to close tag 😅

---

<div class="post-metadata">

### Author: ![Sujan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sujan/32/70979_2.png) [@Sujan](https://meta.discourse.org/u/Sujan)
#### Post date: [4월 19, 2017, 10:57오전 UTC](https://meta.discourse.org/t/how-to-write-three-ticks-in-post-content/61240/9 "2017-04-19T10:57:08Z")

</div>

> [@clapmyhands](#):
>
> \<code\>```\</code\>

Fancy².

Let’s see if this works to output the three ````` (```) needed to format code. Yes it does. Didn’t know about `<code>` before. Thanks!

PS: Uh, did I just discover a “bug” in the quote engine? Backslashes are gone…

---

<div class="post-metadata">

### Author: ![clapmyhands](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clapmyhands/32/69810_2.png) [@clapmyhands](https://meta.discourse.org/u/clapmyhands)
#### Post date: [4월 19, 2017, 11:01오전 UTC](https://meta.discourse.org/t/how-to-write-three-ticks-in-post-content/61240/10 "2017-04-19T11:01:39Z")

</div>

Back slash where?  
Inside your bracket?

---

<div class="post-metadata">

### Author: ![Sujan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sujan/32/70979_2.png) [@Sujan](https://meta.discourse.org/u/Sujan)
#### Post date: [4월 19, 2017, 11:03오전 UTC](https://meta.discourse.org/t/how-to-write-three-ticks-in-post-content/61240/11 "2017-04-19T11:03:37Z")

</div>

I quoted your `<code>\```` in my response. There it shows without the backslashes.  
Super edge case of course, but [quote] seems to miss the \ on output.

---

<div class="post-metadata">

### Author: ![clapmyhands](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clapmyhands/32/69810_2.png) [@clapmyhands](https://meta.discourse.org/u/clapmyhands)
#### Post date: [4월 19, 2017, 11:08오전 UTC](https://meta.discourse.org/t/how-to-write-three-ticks-in-post-content/61240/12 "2017-04-19T11:08:29Z")

</div>

Oh.. that might be a separate bug but we can ask @codinghorror  
Maybe raise a new bug topic.  
But it seems your use case is covered for now 😄  
Cheers

---

<div class="post-metadata">

### Author: ![Sujan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sujan/32/70979_2.png) [@Sujan](https://meta.discourse.org/u/Sujan)
#### Post date: [4월 19, 2017, 12:50오후 UTC](https://meta.discourse.org/t/how-to-write-three-ticks-in-post-content/61240/13 "2017-04-19T12:50:02Z")

</div>

Done: [[quote] loses backslashes on this super edge case](https://meta.discourse.org/t/quote-looses-backslashes-on-this-super-edge-case/61253)

And yes, I’m happy with my solution. Thanks!

---

<div class="post-metadata">

### Author: ![clapmyhands](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clapmyhands/32/69810_2.png) [@clapmyhands](https://meta.discourse.org/u/clapmyhands)
#### Post date: [4월 19, 2017, 1:04오후 UTC](https://meta.discourse.org/t/how-to-write-three-ticks-in-post-content/61240/14 "2017-04-19T13:04:50Z")

</div>

just an FYI 😄

you can click the chain icons \> new topic to create a topic out of a post.

 ![](https://global.discourse-cdn.com/meta/original/3X/c/9/c9491a0100bb5b80c11796d82de7ad22dfe53b73.gif)

---

<div class="post-metadata">

### Author: ![Sujan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sujan/32/70979_2.png) [@Sujan](https://meta.discourse.org/u/Sujan)
#### Post date: [4월 19, 2017, 1:06오후 UTC](https://meta.discourse.org/t/how-to-write-three-ticks-in-post-content/61240/15 "2017-04-19T13:06:19Z")

</div>

What kind of sorcercy…

Awesome. Thanks.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [6월 8, 2024, 12:44오후 UTC](https://meta.discourse.org/t/how-to-write-three-ticks-in-post-content/61240/16 "2024-06-08T12:44:52Z")

</div>

이 주제는 2607일 후 자동으로 닫혔습니다. 새로운 답글 작성은 더 이상 허용되지 않습니다.
