Hi,

Currently SHRBTextStyler does not highlight variables in the playground.
This could be added by extending SHRBTextStyler >>#resolveStyleFor: with

workspace
ifNotNil: [(workspace hasBindingOf: aVariableNode name)
ifTrue: [^ #workspaceVar]].

Still this could cause some problems given how MorphicTextAdapter
integrates Rubric.

MorphicTextAdapter>>setEditingModeFor:withBehavior: can translate
#beForCode from Spec to #beForSmalltalkScripting in Rubric.
However for #beForSmalltalkScripting  to work the model has to provide
methods for managing bindings which MorphicTextAdapter does not.

Maybe there is another way to highlight variables in the playground.

Cheers,
Andrei

Reply via email to