in reply to No line breaks in inline code

I think that's one of the defining differences between inline code and multi line.

IE inline is supposed to easily blend with free flowing text.

If the author doesn't want automatic line breaks he should insert one by himself.

IMHO Inserting a long line as inline code is rather bad style, don't you think so?

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Replies are listed 'Best First'.
Re^2: No line breaks in inline code
by Eily (Monsignor) on Mar 24, 2017 at 15:32 UTC

    Inserting a long line as inliner code is rather bad style, don't you think so?
    Yes, but the code doesn't have to be long to end up broken, it just has to be embeded in the text so that it doesn't fit entirely in the current line.

    If the author doesn't want automatic line breaks he should insert one by himself.
    That's a good point and it would work well for oneliners. But there might be cases where you want your code to be inlined, and it ends up being broken although it's very short. Like my @array;,next unless /regex/ or perl -ne. You could use non breakable spaces to prevent breaking, but that's very cumbersome.

    Edit: corrected typos

      The reader just needs to resize his browser.

      I agree that there are cases where a break is unfortunate, but I think the most common cases are well covered.

      Update: Or stated differently: IMHO changing the default will cause more problems and complaints.

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Je suis Charlie!

        Well I've been reading perlmonks for quite a while now without even noticing the issue, so I'm not going to throw a tantrum* over it. Like I said, the line of CSS I have shared lets other monks chose the behaviour they prefer.

        *besides, I've just learned that, not being born a monk, I'm not elligible to be president here. What's the point of throwing a tantrum if you can't become president?

Re^2: No line breaks in inline code
by hippo (Archbishop) on Mar 24, 2017 at 15:35 UTC
    Inserting a long line as inline code is rather bad style, don't you think so?

    The inline code doesn't need to be long, it just has to go over the div width boundary, ie. straddle two display lines. The code itself might be only 2 short words.

      My point was that this "problem" mainly shows with long lines.

      > The code itself might be only 2 short words.

      My current mobile browser already breaks inside words.

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Je suis Charlie!