Pretty Printing

Bijan Parsia bparsia at email.unc.edu
Sun Nov 7 14:39:42 UTC 1999


At 1:29 AM -0500 11/7/99, Scott Wallace wrote:

>Rick,
>
>It just dawned on me that the misunderstanding here is caused by confusion
>between the two kinds of pretty-print formatting available in Squeak:
>
>*classic pretty-printing* is what you get when you have the
>#browseWithPrettyPrint preference set to true.  This is a monochrome
>reformatting of source code.  You also get this if you request "pretty
>print" from the code-pane menu if you've navigated to it via the more...
>item rather than via holding down the shift key.
>
>*pretty-printing with color* is what you get if you choose "pretty print"
>from the code pane menu while the shift key is held down.

Scott:

Is it really *pretty-printing* WITH color, or is it colorizing? I think
it's important to keep the two separate. I.e., I might want to colorized
code without reformatting (i.e., pretty printing) it. One obviously gets
the effect of *pretty-printing with color* by having the "pretty print" AND
the "colorize" preference turned on.

Obviously this isn't as handy for the menu command (you'd have to select
two items) but having something like the current behavior (shift selecting
*pretty-print* or *colorize* does both) seems a reasonable behavior.

Cheers,
Bijan Parsia.





More information about the Squeak-dev mailing list