XML not visible in post

Hi, there is invisible XML block below.

Here is the end of XML block.

This is by design, and how Markdown works… put it in a code block unless you want it to be interpreted as illegal non-whitelisted html.


Though I expected this behavior, I would like to have a small warning during posting like this: ‘Your message contains a code, consider to put it in a code block using triple back quotes (unless …)’ :slight_smile:

1 Like

This is a pretty enormous problem. I do not see Discourse core adding such a feature for “automatic code block missing” warning. Not sure if even Stack Overflow do this.

But … it is an interesting idea for a plugin, which would have to use some very fancy regex mountain or a custom parser of sorts.

This has been covered at EXTREME length in other topics about “auto detecting code when a user can’t figure out how to properly format code”

And yes SO does do this, because the cost of not doing it on a site about programming was super high.

1 Like

closing this as … by design and covered at: