http://www.perlmonks.org?node_id=677928


in reply to Rein in overly long|wide code segments via CSS

Or uncheck "Code Wrapping Off" in Display Settings.
  • Comment on Re: Rein in overly long|wide code segments via CSS

Replies are listed 'Best First'.
Re^2: Rein in overly long|wide code segments via CSS
by parv (Parson) on Apr 02, 2008 at 10:29 UTC
    I already have that unchecked (and "Auto Code Wrapping" checked). These settings do not have any effect if there is no whitespace to break on.

      PM code wrapping only occurs if "Auto Code Wrapping" is unchecked. After the specified width, the line is broken and a red "+" is placed in the first column indicating it's a continuation. Clicking the "download" link provides the unwrapped code.

      1234567890123456789012345678901234567890123456789012345678901234567890 +123456789012345678901234567890
      looks like
      1234567890123456789012345678901234567890123456789012345678901234567890 +123456789012345678901234567890 [download]

      Anyway, just posting an alternative.

        Thanks much for clarifying just what "Auto Code Wrapping" option actually does (completely opposite of what I had thought).

        Some time later I discovered that code appears in a p when "A C W" is checked, else in pre which has its own issues. I will keep the "A C W" checked for now.