# Fenced code blocks don't work with ~~~…~~~

**URL:** https://meta.discourse.org/t/fenced-code-blocks-dont-work-with/28219
**Category:** Feature
**Created:** [May 2, 2015, 1:01am UTC](https://meta.discourse.org/t/fenced-code-blocks-dont-work-with/28219 "2015-05-02T01:01:33Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![johnmuhl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johnmuhl/32/43413_2.png) [@johnmuhl](https://meta.discourse.org/u/johnmuhl)
#### Post date: [May 2, 2015, 1:01am UTC](https://meta.discourse.org/t/fenced-code-blocks-dont-work-with/28219/1 "2015-05-02T01:01:33Z")

</div>

Both triple ` and ~ should be supported as the start and end of fenced code blocks but only backticks seem to work here.

```plaintext
This is a fenced code block

```

```plaintext
This is a fenced code block

```

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [May 2, 2015, 2:05am UTC](https://meta.discourse.org/t/fenced-code-blocks-dont-work-with/28219/2 "2015-05-02T02:05:35Z")

</div>

I’m only familiar with US keyboards, they have both backtick and tilde keys.

But I understand some keyboards (European) don’t have bactick keys.

Would those keyboards have tilde keys?

---

<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: [May 2, 2015, 2:08am UTC](https://meta.discourse.org/t/fenced-code-blocks-dont-work-with/28219/3 "2015-05-02T02:08:55Z")

</div>

That is not part of Markdown or CommonMark as far as I know.

---

<div class="post-metadata">

### Author: ![johnmuhl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johnmuhl/32/43413_2.png) [@johnmuhl](https://meta.discourse.org/u/johnmuhl)
#### Post date: [May 2, 2015, 2:13am UTC](https://meta.discourse.org/t/fenced-code-blocks-dont-work-with/28219/4 "2015-05-02T02:13:24Z")

</div>

[CommonMark Spec](http://spec.commonmark.org/0.19/#fenced-code-blocks). PHP Markdown Extra, kramdown and GitHub markdown support it.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [May 2, 2015, 2:13am UTC](https://meta.discourse.org/t/fenced-code-blocks-dont-work-with/28219/5 "2015-05-02T02:13:38Z")

</div>

> [@codinghorror](#):
>
> That is not part of Markdown or CommonMark as far as I know.

Maybe unique to SourceForge flavor Markdown?

> **[tilde](https://sourceforge.net/projects/tilde/)**
>
> Download tilde for free. Tilde is a web language, a web server and a content management tool (CMT). The web language is an alternative to PHP and VBscript, with some significant differences.

> If you want some text to show up exactly as you write it, without Markdown doing anything to it, just indent every line by at least 4 spaces (or 1 tab). As an alternative to indenting, you can use 4 or more tildes before and after the text.  
> …  
> You can also designate a code block by surrounding it with lines of tildes. The type of code highlighting to apply will be inferred based on the code within, or you can specify like above.

---

<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: [May 2, 2015, 2:18am UTC](https://meta.discourse.org/t/fenced-code-blocks-dont-work-with/28219/6 "2015-05-02T02:18:48Z")

</div>

Oh my bad, if it is in the CommonMark spec we will support it for the official release of the CommonMark spec, once we have time to integrate. There is no official final release yet. Probably will take at least 8 months for all of that to happen, if not more.

---

<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: [June 26, 2017, 7:10pm UTC](https://meta.discourse.org/t/fenced-code-blocks-dont-work-with/28219/7 "2017-06-26T19:10:01Z")

</div>

Ok, this is now working with commonmark enabled here.

---

<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: [June 26, 2017, 7:10pm UTC](https://meta.discourse.org/t/fenced-code-blocks-dont-work-with/28219/8 "2017-06-26T19:10:03Z")

</div>


