4 ms·
Artem should add pre code { white-space: pre-wrap; } to his CSS, so the code doesn't cause a horizontal scrollbar to appear.
by jfarmer 15y ago
Artem should add
pre code {
white-space: pre-wrap;
}
to his CSS, so the code doesn't cause a horizontal scrollbar to appear.
- blhack 15y agoComments like this are why I love HN. It's absolutely no surprise to me that your account is as old as it is.
- jcr 15y agoHave you discovered the super cool part of jfarmer's suggestion? You can select and copy the wrapped text (code), and the lines, when pasted, are not wrapped. In other words, the line breaks in the original text/code remain intact. With a bit of userContent.css manipulation in firefox, you can force this on all places (<pre>, <code>, ...) where it's useful.