1

I have a literal block consisting of a single long line. It is currently displayed as a single-line block with horizontal scrollbar (like the literal block below). How do you implement auto-formatting to wrap the line so it wraps dynamically when the browser is resized?

::
  Long line that does not wrap...........................................................................................
Zhiyong
  • 391
  • 1
  • 3
  • 19

1 Answers1

1

This could be done by overriding the default CSS with a new style:

pre {
    white-space: pre-wrap;
}

Edit your theme's CSS file to include this directive and it should just work.

Steve Piercy
  • 13,693
  • 1
  • 44
  • 57