<div dir="ltr"><div>75em may also be a good limit, now that Number even understands such a selector.</div><div><a href="https://baymard.com/blog/line-length-readability" target="_blank">https://baymard.com/blog/line-length-readability</a></div><div><br></div>But seeing Tim's examples: before we start tweaking the indentation of comments by the pretty printer, which would have it insert tabs or spaces or anything else, better implement that proposal to display comment lines left-aligned with the opening ", without requiring indentation characters in the source text. Remember that other thread about whether or not to have line breaks in comments? Somebody posted a screenshot from Dolphin Smalltalk that shows what I am referring to.<div><br></div><div>To leave the comments untouched by the pretty-printer seems reasonable to me for now.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Do., 14. Juli 2022 um 19:34 Uhr schrieb tim Rowledge <<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On 2022-07-13, at 11:35 PM, Marcel Taeumel <<a href="mailto:marcel.taeumel@hpi.de" target="_blank">marcel.taeumel@hpi.de</a>> wrote:<br>
> <br>
> If one would reformat comments, I would strongly suggest to NOT define line breaks via pixels but only based on a sane lines-per-character default. Maybe -- and only because Squeak uses proportional fonts by default -- use the text-layout algorithm to figure out the breaks.<br>
<br>
I claim it should just be the width of the frame you are rendering the text into.<br>
<br>
A luxury option would be to try to keep the left edge aligned with the starting location of the comment. Obviously there are edge case where the right edge is so close that we'd have to simply abandon hope, and so on.<br>
<br>
To try to illustrate - <br>
    self doSomethingOrOther + foo blather "a comment that goes on a bit about nothing very useful but drifts on and on and on like a speech by a particularly boring emeritus professor of classics after a booze fuelled Old Etonian conspiracy meeting"<br>
<br>
... isn't terribly readable (ignoring the quality of the content!).<br>
If we could make it wrap more helpfully it might appear as <br>
    self doSomethingOrOther + foo blather "a comment that goes on a bit about nothing very useful but drifts on<br>
                                                                   and on and on like a speech by a particularly boring emeritus professor<br>
                                                                   of classics after a booze fuelled Old Etonian conspiracy meeting"<br>
<br>
.. .which I suggest looks a lot better. If your rendering frame is rather narrower it might end up<br>
    self doSomethingOrOther + foo blather "a comment that goes on a bit<br>
                                                                  about nothing very useful but<br>
                                                                  drifts on and on and on like a<br>
                                                                  speech by a particularly boring<br>
                                                                  emeritus professor of classics<br>
                                                                  after a booze fuelled Old<br>
                                                                  Etonian conspiracy meeting"<br>
Maybe if the right edge is closer than perhaps 20 ems one might wrap to the beginning of the line of code + a tab?<br>
    self doSomethingOrOther + foo blather "a comment that<br>
           goes on a bit about nothing very useful but drifts on<br>
           and on and on like a speech by a particularly boring<br>
           emeritus professor of classics after a booze fuelled<br>
           Old Etonian conspiracy meeting"<br>
<br>
Along with having Shout use italics for comments that would still be pretty readable.<br>
<br>
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" rel="noreferrer" target="_blank">http://www.rowledge.org/tim</a><br>
Oyster (n.), a person who sprinkles his conversation with Yiddishisms.<br>
<br>
<br>
<br>
</blockquote></div>