8

I just noticed that something weird happened today with code fences and Stack Snippets.

Examples:

<h1>Hello World!<h1>

Hello World!

Seems like the boxes are bigger. What is the (unneeded?) space above, under and left the code?

I know this is , but is there a benefit it was designed like this? I (at least) found it confusing to follow in large script:

var a = "a";
var b = "b";
var c = "c";

console.log(a);
console.log(b);
console.log(c);

6

This was changed to address a long-standing issue with Macs' weird-ass "auto-hiding-and-then-reappearing-on-top-of-your-code" scrollbar feature.

More details in Ted's answer here: Has the padding on code blocks been increased?

  • I see... Well, it maybe a little bit difficult to understand code inside them, at least personally, but I will try to skip it. – double-beep Mar 14 at 20:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .