[Pharo-project] [Moose-dev] Re: Highlight problem with glamour

Tudor Girba tudor.girba at gmail.com
Thu May 12 10:43:39 EDT 2011


Hi,

On 12 May 2011, at 16:30, Marcus Denker wrote:

> 
> On May 12, 2011, at 4:10 PM, Tudor Girba wrote:
> 
>> 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?
>> 
> 
> Which version of Pharo are you using?

It is Pharo 1.2.1.

Cheers,
Doru



>> 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 at iam.unibe.ch
>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>> 
>>> 
>>> _______________________________________________
>>> Moose-dev mailing list
>>> Moose-dev at 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."
>> 
>> 
>> 
>> 
>> 
> 
> --
> Marcus Denker  -- http://www.marcusdenker.de
> INRIA Lille -- Nord Europe. Team RMoD.
> 
> 

--
www.tudorgirba.com

"Beauty is where we see it."







More information about the Pharo-dev mailing list