The TextModel? is not set to a specific class, so it does not understand that it is a method you are declaring. The same code is red in the Playground as well. Switch 'method: sth ^ 1' to for example: '| area | area := RubEditingArea new.' Best regards, Henrik -----Original Message----- From: Pharo-dev [mailto:pharo-dev-bounces@lists.pharo.org] On Behalf Of Yuriy Tymchuk Sent: Monday, March 21, 2016 8:36 PM To: Pharo Development List <pharo-dev@lists.pharo.org> Subject: Re: [Pharo-dev] How to set styler for RubEditingArea? Ok, Iâm continuing my journey of styling code. And at the beginning I want to at least recreate the original coding area. Iâve did this and everything is red⦠area := RubEditingArea new. area backgroundColor: Color lightGray; updateTextWith: 'method: sth ^ 1'; textColor: Color white; beNotWrapped; beForSmalltalkCode; width: 400; withDecoratorNamed: #shoutStyler. area shoutStyler styler: RubSHTextStylerST80 new. area openInWorld any idea what could possibly go wrong? Uko
On 20 Mar 2016, at 02:56, monty <monty2@programmer.net> wrote:
There are actually two, a highlighting parser used when you inspect files from spotter, and a highlighting writer used to implement the "Tree" and "Source" tabs when inspecting an already-parsed DOM tree.
Sent: Saturday, March 19, 2016 at 7:24 AM From: "Nicolai Hess" <nicolaihess@gmail.com> To: "Pharo Development List" <pharo-dev@lists.pharo.org> 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" <stephan@stack.nl>: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