in reply to Re: No line breaks in inline code
in thread No line breaks in inline code
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: No line breaks in inline code
by LanX (Saint) on Mar 24, 2017 at 15:45 UTC | |
by Eily (Monsignor) on Mar 24, 2017 at 15:53 UTC | |
by LanX (Saint) on Mar 24, 2017 at 15:59 UTC |