Dear Squeakers,
now it also supplies 'prettyPrint' for selections of code...
Stephan
"Change Set: acceptWithPrettyPrint Date: 3 April 2000 Author: Stephan Rudlof, Torge Husfeldt
This changeset introduces preferences #acceptWithPrettyPrint and #prettyPrintForSelections.
If #acceptWithPrettyPrint is set to true, browsers will automatically format their contents before accepting it (without color). This works both in Morphic and MVC projects.
If #prettyPrintForSelections is set, prettyPrint'ing *selections* of text is allowed.
This avoids unformatted sources.
Often you type in a method on the fly and leave the formatting to the Browser by setting the preference #acceptWithPrettyPrint to true. But the sources remain ugly.
Using this preference is simpler as using the menu methods 'pretty print' or 'pretty print with color'.
In addition to the 'pretty print' menu methods formatting works also for new methods.
Note: - Includes changeset acceptPrettyPrint from Torge. - Browser>>defineMessageFrom:notifying: just overwrites wrong changes from first version of this changeset. "
Correction:
In the preamble it has to be
Often you type in a method on the fly and leave the formatting to the Browser by setting the preference #browseWithPrettyPrint to true. But the sources remain ugly.
instead of
Often you type in a method on the fly and leave the formatting to the Browser by setting the preference #acceptWithPrettyPrint to true. But the sources remain ugly.
.
Stephan
Stephan Rudlof wrote:
Dear Squeakers,
now it also supplies 'prettyPrint' for selections of code...
Stephan
"Change Set: acceptWithPrettyPrint Date: 3 April 2000 Author: Stephan Rudlof, Torge Husfeldt
This changeset introduces preferences #acceptWithPrettyPrint and #prettyPrintForSelections.
If #acceptWithPrettyPrint is set to true, browsers will automatically format their contents before accepting it (without color). This works both in Morphic and MVC projects.
If #prettyPrintForSelections is set, prettyPrint'ing *selections* of text is allowed.
This avoids unformatted sources.
Often you type in a method on the fly and leave the formatting to the Browser by setting the preference #acceptWithPrettyPrint to true. But the sources remain ugly.
Using this preference is simpler as using the menu methods 'pretty print' or 'pretty print with color'.
In addition to the 'pretty print' menu methods formatting works also for new methods.
Note:
- Includes changeset acceptPrettyPrint from Torge.
- Browser>>defineMessageFrom:notifying: just overwrites wrong changes
from first version of this changeset. " -- Stephan Rudlof (sr@evolgo.de) "Genius doesn't work on an assembly line basis. You can't simply say, 'Today I will be brilliant.'" -- Kirk, "The Ultimate Computer", stardate 4731.3
Name: acceptWithPrettyPrint.3.cs
acceptWithPrettyPrint.3.cs Type: unspecified type (application/octet-stream) Encoding: base64
squeak-dev@lists.squeakfoundation.org