2

In Stack Exchange, we need Ctrl + K to format code. As we know, most Markdown editors support this syntax:

```c++
int main()
{
}
```

In Stack Exchange, it will be rendered to:

c++ int main() { }

While with Ctrl + K, it will be rendered to:

int main()
{
}

I cannot figure why it isn't supported by Stack Exchange.

2

As far as I can tell, Stack Exchange markdown is based on the original Markdown, defined in 2004.

Taking a look on their website, it does not define the "Fenced code blocks" syntax, which was added only much later to other markdown extensions.

That's why SE doesn't support it. There is a very popular feature request asking to support it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .