Cooking with C++

Encouraging users to use backticks for inline code and 3 backticks for code blocks is the best solution. Maybe create a pinned topic about that in your forum?

In addition to that you could give Unformatted Code Detector theme component a try.

6 Likes