> OK, but that means that when a paragraph has multiple styles, we end up > with the following structure: > > <Paragraph> > <Span> > <Text>some styled text</Text> > </Span> > <Text>unstyled text</Text> > <Span> > <Text>more styled text</Text> > </Span> > </Paragraph>
Right. This is similar to how it would work in HTML: <p> <span>some styled text</span> unstyled text <span>more styled text</span> </p> (The <TextNode> elements are actually optional in Pivot's text model as well) > And we don't currently support Span in TextAreaSkin. > I'm trying to implement it, but it's turning out pretty complicated, > because now the line-breaking is going to be split between ParagraphView > and SpanView. I haven't tried it yet, but I am guessing that wrapping in SpanView shouldn't be all that different from wrapping in TexNodeView. It doesn't actually need to perform the wrapping - it just needs to know where to break and return the next view so that ParagraphView can wrap.
