Applying different background colors to selected paragraphs
Hello there,
In the text that is loaded dynamically as XML (i.e. markup format) I need to specify background color for selected paragraphs.
So, I tried this: <p backgroundColor='#800000'>.
Alas, it has no effect.
What puzzles me even more is that declaring this attribute in span DOES work:
<p><span backgroundColor='#800000'>Lorem impsum ... </span></p>
This way it does change the background color, albeit, it is not solid background but sort of highlight of the text lines.
Although, it's not ideal, I could live with that, but still would be interested to find out: what am I missing?
After all, span can't have children, so it is a patch rather then nice solution.
So, far I couldn't find the explanation of that behavior - ignoring 'backgroundColor' attribute in the paragraph tag.
I'm on Mac 10.6.6 and use TLF 2.0 build 228
BTW, searching for an answer I found a typo in the official TLF 1.1 Markup specification that was published back in December:
6.3.13 backgroundColor attribute
<xs:attribute name="textAlpha" type="xs:text" default=" transparent"/>
Background color of the text.
backgroundColor is non-inheriting.
Valid values include:
• transparent: No color is applied.
• <hexadecimal value>: A value that conforms to the color data type.
Thanks,
Igor Borodin
