Code formatting changes while typing the code

Regarding this post of mine.

I noticed the different code formatting of my post compared to the OP.
I then played around a little bit, trying to match the formatting of my code to the one in the OP, and I noticed that the code formatting changes while I change the code. Watch the following gif-animations:

firefox_C1edwtkncg
firefox_wUnJCVaEN2

I expect that the formatting of code only changes if I change/specify the programming language, for example by starting the code block with:

```php

Am I doing something wrong?

9 posts - 4 participants

Read full topic


Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/code-formatting-changes-while-typing-the-code/8245