Thanks, it works.
Another question: Is it possible to manage the fact that the
code displayed is a method? (ie not having the selector and
instance variables causing the syntactic coloration to be
red)
Thanks in advance,
Julien
On 03/05/17 17:09, Nicolai Hess wrote:
2017-05-03 16:57 GMT+02:00 Julien Delplanque <julien@tamere.eu>:
Hello,Hi,
I looked in the mailing list archive but did not found an answer.
Is there any way to have Smalltalk syntactic coloration in a TextModel
without having to put efforts in it?
I mean, if I do:
TextModel new
�� �� ��isForSmalltalkCode: true;
�� �� ��text: (Collection>>#any) sourceCode;
�� �� ��openWithSpec
The text displayed is black.
Thanks in advance,
Julien
you need to add
aboutToStyle:true
TextModel new
�� �� ��isForSmalltalkCode: true;
�� �� ��text: (Collection>>#anyOne) sourceCode;
�� �� ��aboutToStyle: true;
�� �� ��openWithSpec