[Newbies] How can Smalltalk codes in Squeak be automatically indented ?
RedTigerFish
chihuyu at gmail.com
Fri Nov 10 06:21:35 UTC 2017
*1 to: 9 do: [ :i |
1 to: i do: [ :j |
Transcript
show: ('{1} * {2} = {3}' format: {j. i. j * i});
show: ' '
].
Transcript show: ' '; cr.
].*
The above is well-indented codes. Then I intentionally add more spaces, like
this
*1 to: 9 do: [ :i |
1 to: i do: [ :j |
Transcript
show: ('{1} * {2} = {3} ' format: {j. i. j * i});
show: ' '
].
Transcript show: ' '; cr.
].*
Then I use pretty print or pretty print with color, nothing happens.
I recorded a video to illustrate my issue.
<https://youtu.be/cB0N3L1Ou6w> *Video Link*
I do not understand why "pretty print" does not indent anything.
-----
Dig, dig where you are,
Down below's well.
Let those that walk in darkness shout,
Down below's hell.
--
Sent from: http://forum.world.st/Squeak-Beginners-f107673.html
More information about the Beginners
mailing list