Code formatting frequently breaking on large HTML/CSS blocks!

(Kirupa Chinnathambi) #1

Hi, everyone!
I’ve noticed that the code formatting often breaks for large blocks of HTML/CSS text. Here is an example: JavaScript only works once, then need to refresh page? - kirupaForum

What can I do to avoid this? Because a lot of the questions there involve large snippets of code, having the code formatting not work properly is a problem.


(Jeff Atwood) #2

They did not format the code at all. This has nothing to do with Discourse.

(Kirupa Chinnathambi) #3

You are right, Jeff! So sorry. I even tested a few blocks that seemed to be broken in other threads, and it turned out to be user error where they didn’t select everything and then press the Preformatted Text icon.

(Jeff Atwood) #4

They can also use fenced code blocks as needed, both are supported in Discourse.