Spec TextModel syntax highlight

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Spec TextModel syntax highlight

Uko2
Hi, I’m trying to have a syntax highlight in my code area. When I do

TextModel new
        beForCode;
        openWithSpec

and type a code there, nothing is highlighted. any ides why?

Also where should I look if I want to use a custom SHTextStyler?


Cheers.
Uko
Reply | Threaded
Open this post in threaded view
|

Re: Spec TextModel syntax highlight

Nicolai Hess-3-2


2016-07-25 9:58 GMT+02:00 Yuriy Tymchuk <[hidden email]>:
Hi, I’m trying to have a syntax highlight in my code area. When I do

TextModel new
        beForCode;
        openWithSpec

and type a code there, nothing is highlighted. any ides why?

aboutToStyle: true
(don't ask me why)

And due to the way rubric handles text changes, all this is really ugly and difficult, if you want to change how the styler interprets the code, either as "workspace code" or "method code".

 

Also where should I look if I want to use a custom SHTextStyler?


hm, I once found a way, but I do not remember.
 

Cheers.
Uko