Hacker News new | past | comments | ask | show | jobs | submit login

Artem should add

  pre code {
    white-space: pre-wrap;
  }
to his CSS, so the code doesn't cause a horizontal scrollbar to appear.



Comments like this are why I love HN. It's absolutely no surprise to me that your account is as old as it is.


Have 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: