DEV Community

Discussion on: Safari is word-wrapping the pre tag, creating inappropriate code wrapping.

Collapse
 
kristof0425 profile image
Kristóf Dombi • Edited

Hello Ben!

I've come across your problem recently and these lines of css helped me out:

pre {
  white-space: nowrap;
  word-wrap: break-word;
  overflow: auto;
}

Let me know if it helped you!

Kristof