[squeak-dev] The Inbox: Tools-LM.827.mcz
leon.matthes at student.hpi.de
Tue Aug 28 19:12:33 UTC 2018
Eliot Miranda-2 wrote
> In Pharo's Playground errors in syntax highlighting are reset after a new
> line (see below). So one only sees one line of red before syntax
> highlighting works as desired again. This makes it bearable. So if we
> are to enable syntax highlighting by default can we first create a
> subclass or mode of the Shout styler that resets its parse after a new
> line where preceding characters have been marked as in error? Note also
> that the results of doit are inserted into the text as comments.
Does this also work with formatted code? for example cascades that span
> This is why I would prefer not to see this change -
Okay, I see your problem.
Do you usually stick to one form of highlighting, either on or off, for all
Because if this is the case, I would suggest to save whether the user wants
to enable code styling whenever Workspace>>#toggleStyling is called and to
just use the saved state whenever a new Workspace is created, instead of
relying on one default.
This would allow people like me who almost always want syntax highlighting
to just enable it once and everyone else to just keep it at the default.
Leon (original author of the commit)
Sent from: http://forum.world.st/Squeak-Dev-f45488.html
More information about the Squeak-dev