I'm currently working on designing a technical documentation webpage using HTML and CSS.
I've been facing a challenge when it comes to incorporating code snippets without causing my page layout to break.
For instance, inserting the following code snippet works without any issue:
<code>
return number * number;
</code>
However, the following code snippet breaks the layout. How can I effectively integrate code like this?
<code>
var n = 0; var x = 0; while (n < 3) { n++; x +=n; }
</code>
Your assistance would be greatly appreciated! Thank you in advance!