Pretty Printing
Scott Wallace
Scott.Wallace at disney.com
Sun Nov 7 00:05:29 UTC 1999
Rick,
I just checked in an up-to-date 2.7-alpha image, in both mvc and morphic, and the pretty-print preference seem to work properly there.
Once you set the #browseWithPrettyPrint preference to true, then any subsequent selection you make in a browser or message-list will result in the contents of the selected method being pretty-printed.
When you *submit* a new version of a method in a browser, it is not reformatted by the pretty-printer -- could that be what is not working for you? (To get the pretty-print effect in this case, deselect and then reselect the method name in the selector list.)
Also, if you have a browser already open on the screen and already looking at a given method, and *then* you turn "browseWithPrettyPrint" on, you won't see the pretty-print effect in that browser until you reselect the method.
Note also that in the case of the three file-based browsers -- versions browser, change-list browser, and file-contents browser, the pretty-printer is not used.
Possibly some of the customized browsers (e.g. hierarchy browser, inheritance browser, protocol browser) might not honor the #browseWithPrettyPrint preference -- I didn't check these.
If none of the above speculations explains the phenomenon you're reporting, then please elaborate further, and we'll get to the bottom of this.
-- Scott
At 5:30 PM -0500 11/6/99, Rick Zaccone wrote:
>I like the browser's capability to pretty print. I have gotten it to
>work by holding down the shift key and the yellow button on the source
>pane and then selecting "pretty print". (You can also hold down the
>shift key and select the menu in the pane's scroll bar.)
>
>In the preferences menu is browseWithPrettyPrint. The help balloon says
>"If true, browsers will automatically format their contents." This
>doesn't work for me. Is this a bug or am I missing something?
>
>It was great to see the members of Squeak Central at the OOPSLA BOF!
>
>Rick Zaccone
>--
>zaccone at bucknell.edu
More information about the Squeak-dev
mailing list
|