---------- Forwarded message ----------
From:��Davide Varvello <varvello@yahoo.com>
To:��pharo-users@lists.pharo.org
Cc:��
Bcc:��
Date:��Tue, 8 May 2018 06:31:46 -0700 (MST)
Subject:��Re: How to pretty print a dynamic array
Thanks Ben, I'm gonna try
Cheers
Davide
Ben Coman wrote
> On 8 May 2018 at 04:22, Davide Varvello via Pharo-users <
> pharo-users@.pharo
>> wrote:
>
>>
>>
>> ---------- Forwarded message ----------
>> From: Davide Varvello <
> varvello@
> >
>> To:
> pharo-users@.pharo
>> Cc:
>> Bcc:
>> Date: Mon, 7 May 2018 13:22:58 -0700 (MST)
>> Subject: How to pretty print a dynamic array
>> Hi guys,
>> I have a dynamic array that the formatter put on a column like this:
>> {self meth1.
>> self meth2.
>> self meth3}
>>
>> instead I want it in a single row, like this:
>> {self meth1. self meth2. self meth3}
>>
>> But I can't find any settings to pretty print in the last way.
>> Can you help me, please?
>>
>
> Hi Davide,
>
> I'm not sure I can be much help since I never use the pretty printer and
> I'm not familiar with the system.
> There may be a setting for that, but if not and I wanted to find out about
> how to do it
> I'd take the shotgun approach....
>
> In System > Settings, search for "pretty" and the with some setting
> related
> to newLines,
> some line "New line After Cascade"
> then "Browse" it, then in the body of the method find that text again
> and look for senders attached selector.
>
> That brought me to " BIConfigurableFormatter >> visitCascadeNode: "
> and browsing that method in the System Browser shows a bundle of other
> "visitXXX" methods.
> Drop a "self haltOnce" in an interesting one and try to trigger when you
> pretty print.
> Trace through a few times to learn how it does its stuff, and see if you
> can change it to do what you want.
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html