top | item 28177197

(no title)

correct_horse | 4 years ago

I'm not sure if the author of this blog visits hacker news to read this, but your code blocks are unreadable without javascript. They're black highlighted black text.

discuss

order

nyanpasu64|4 years ago

The site loads smoothly even with JS on. If you want to fix the code blocks with JS off, try the following:

  pre {
      background-color: rgb(40, 40, 35);
      color: rgb(248, 248, 242);
  }

bnchrch|4 years ago

If you remove the wheels from a car don’t expect a smooth ride.

wott|4 years ago

Very unsuitable analogy.

If you remove syntax colouring from a text, you do expect to still be able to read the text.

Why the difference? Because the wheel is an essential component of a car, while syntax colouring is more akin to the paint job of the car: you change change it, remove it, it won't affect the function of the car.

BTW, if we remove the CSS, the text becomes apparent again. So if we keep going with the same analogy, it becomes even more unsuitable: removing half of the wheels prevents the car from working, but removing all of them now restores a smooth ride. We quickly see how it turns absurd and contradicts.