TIL: StackOverflow supports backticks

TIL: StackOverflow supports backticks

Today I Learned that StackOverflow supports 3 backticks to create a code block, similar to a fenced code block in GitHub’s Flavoured Markdown.

```html
<h1>Header!</h1>
<p id="paragraph1">Hello, HTML code!</p>
```

And here’s the other form of syntax for a code block on StackOverflow:

<!-- language: lang-html -->

    <h1>Header!</h1>
    <p id="paragraph1">Hello, HTML code!</p>

EDIT: I also learnt that it is possible to have 3 backticks in a code block. (See the source for this post for more info)

About Edric Chan

(site owner)

A 16-year-old tech enthusiast since getting his first MacBook Pro 2015 in the year-end of 2015. When he's not at school, he usually works on small programming projects or reads technology-related books. He currently studies at School of Science & Technology, Singapore and will graduate in 2019 to pursue his post-secondary life.

Share "TIL: StackOverflow supports backticks"

Successfully copied to the clipboard!
An error occurred while attempting to copy to the clipboard
An update is available!