That is probably done by using GLMHighlighterTextStylerDecorator which includes 
#styler: , but I guess you have to also use GLMRubircSMalltalkTextModel and 
perhaps also some other things then.

Anyways I added a new configuration of rubric (2.12) which adds #styler: to 
RubShoutStylerDecorator and some other stuff.

Best regards,
Henrik


From: Pharo-dev [mailto:[email protected]] On Behalf Of Nicolai 
Hess
Sent: Saturday, March 19, 2016 12:24 PM
To: Pharo Development List <[email protected]>
Subject: Re: [Pharo-dev] How to set styler for RubEditingArea?


Isn't there a xml.-Styler in Moose? How is that implemented?
Am 19.03.2016 11:28 vorm. schrieb "Stephan Eggermont" 
<[email protected]<mailto:[email protected]>>:
On 19-03-16 10:59, Henrik Nergaard wrote:
There is no way of doing that, RubParagraphDecorator lacks a method to set its 
style variable.

If you add that, then you can do something like:
Self is a RubEditingArea

(self decoratorNamed:  #shoutStyler) style: yourStyleclass new.

I'm strongly in favor of adding this. There are other languages I want to style 
than smalltalk.

Stephan

Reply via email to