Thanks, Fabrizio.
I noticed a similar problem with highlighting Java code, but I thought it was related to the grammar.
I CC-ed the Pharo mailing list.
Anyone knows why it would be a problem to highlight text with more than 4096 characters in a TextMorph?
Cheers, Doru
On 12 May 2011, at 16:03, Fabrizio Perin wrote:
It basically breaks after 4096 characters.
On 12 May 2011, at 16:02, Fabrizio Perin wrote:
Hi, i was playing with textlint and i noticed that the highlight is broken. Seems that the problem is related to the length of the text. If you try to execute the script below you notice that the highlight doesn't work. If you lower 1000 to 100 it works. It seems that the break point is 194. After that it dies.
| browser | browser := GLMTabulator new. browser column: #details.
"if you need initial display" browser transmit to: #details; andShow: [:a | a text display: [:x | | string | string := ''.1 to: 1000 do: [:i | string := string, 'jjjjj j j j j j jjj j']. (string asText addAttribute: TextColor red), ('jjjjj j j j j j jjj j' asText) ] ]. browser openOn: 5
Any idea?
Cheers,
Fabrizio _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"The coherence of a trip is given by the clearness of the goal."