For lack of a better answer, would an equivalent be to be able to programmatically perform the <Format> menu item that is on the editor menu?��
Here is how I learnt a lot about Pharo...
1. Open the editor menu and bring up halos on the <Format> menu item. ��(key modifier combination varies between OS platform)
2. Click the spanner "debug" icon and choose <inspect morph>
3. Look through all the instance vars for the message that seems to invoke the formatting.�� Browse all implementors of that message adding "self halt" at the top.
4.�� Execute the command and trace through how its done behind the scenes, and adapt to your requirements.
HTH, cheers -ben