Now that I see you understand this, could you please take care about this
issue:
http://code.google.com/p/pharo/issues/detail?id=2734
http://forum.world.st/Conflic-between-Shout-and-PluggableTextMorph-in-Pharo-1-2-td2306930.html#a2306930
Thanks!
Mariano
I've found this topic when I had the same problem :)
To run tests on 1.2 about text styling, I've only file in the categories
Shout-Styling and Shout-Parsing and I had to add a method to
PluggableTextMorph :
stylerStyled: styledCopyOfText���
��� textMorph contents runs: styledCopyOfText runs .���
��� "textMorph paragraph recomposeFrom: 1 to: textMorph contents size delta: 0."
���
��� "caused chars to appear in wrong order esp. in demo mode.
��� remove this line when sure it is fixed"���
���
��� textMorph updateFromParagraph.���
��� selectionInterval ��� ���
��� ��� ��� ifNotNil:[
��� ��� ��� ��� textMorph editor
��� ��� ��� ��� ��� selectInvisiblyFrom: selectionInterval first to: selectionInterval last;
��� ��� ��� ��� ��� storeSelectionInParagraph;
��� ��� ��� ��� ��� setEmphasisHere].���
��� "textMorph editor blinkParen."���
��� self scrollSelectionIntoView
With that, i've color in my PluggableTextMorph, but I think it's not the proper way to do it :)
Thanks
I will check your code. I was wondering why two NullObjects and not just one?
I thought that we would have a NullStyler and the ShoutStyler
Steph