2 added 441 characters in body
source | link

Hi,

on many monitors, the very light gray background color of code blocks looks like 100% white, when looking at the monitor with even just a slight angle. While I do believe, that it wouldn't look good, if it were a lot darker, I feel that making it just a tiny little bit darker would help to separate it from the rest of the text.

Especially, when the spans are inlined in the rest of the text, and the code word could accidentally fit into the sentence, this is sometimes important to avoid confusion. And the font alone isn't different enough IMO to accentuate these small bits of text.

About padding:

In exchange, we could/should get rid of the extra padding around inline code, which many people (including myself) find distracting. This also includes vertical padding of the background box: Between two consecutive lines like

Test1
Test2

there should be at least one pixel of vertical white-space separating the background boxes.

Alternative: Highlight code with a different foreground color.

What do you think?

Chris

Hi,

on many monitors, the very light gray background color of code blocks looks like 100% white, when looking at the monitor with even just a slight angle. While I do believe, that it wouldn't look good, if it were a lot darker, I feel that making it just a tiny little bit darker would help to separate it from the rest of the text.

Especially, when the spans are inlined in the rest of the text, and the code word could accidentally fit into the sentence, this is sometimes important to avoid confusion. And the font alone isn't different enough IMO to accentuate these small bits of text.

What do you think?

Chris

Hi,

on many monitors, the very light gray background color of code blocks looks like 100% white, when looking at the monitor with even just a slight angle. While I do believe, that it wouldn't look good, if it were a lot darker, I feel that making it just a tiny little bit darker would help to separate it from the rest of the text.

Especially, when the spans are inlined in the rest of the text, and the code word could accidentally fit into the sentence, this is sometimes important to avoid confusion. And the font alone isn't different enough IMO to accentuate these small bits of text.

About padding:

In exchange, we could/should get rid of the extra padding around inline code, which many people (including myself) find distracting. This also includes vertical padding of the background box: Between two consecutive lines like

Test1
Test2

there should be at least one pixel of vertical white-space separating the background boxes.

Alternative: Highlight code with a different foreground color.

What do you think?

Chris

1
source | link

Slightly darker background color for code blocks

Hi,

on many monitors, the very light gray background color of code blocks looks like 100% white, when looking at the monitor with even just a slight angle. While I do believe, that it wouldn't look good, if it were a lot darker, I feel that making it just a tiny little bit darker would help to separate it from the rest of the text.

Especially, when the spans are inlined in the rest of the text, and the code word could accidentally fit into the sentence, this is sometimes important to avoid confusion. And the font alone isn't different enough IMO to accentuate these small bits of text.

What do you think?

Chris