[Xerte] text entry interaction with different font colors
Bárbara Furtado
bfurtado at student.dei.uc.pt
Sun Sep 12 17:30:53 BST 2010
Hi,
I'm probably not explaining well (sorry about my english). I need to make a
programming exercise with a piece of java code to complete, and I would like
to put text with different colors. I'm using HTML tags, like this:
<font color="#0000FF">public static void</font>
<b><i>main</i></b>(String[] args) {
<font color="#999999">//declara um array de inteiros</font>
<font color="#0000FF">int</font>[] A = <font color="#0000FF">new
int</font>[ |3| ];
It works fine in preview, but when I use the code to break the words apart (
*w = mainText.breakApart(3,7,false,false);* ), in preview HTML tags display
as text. Is there another way to do this? Anyone can help?
Thanks a lot. And I'm sorry for the repeated e-mail.
Bárbara Furtado
No dia 12 de Setembro de 2010 00:29, Bárbara Furtado <
bfurtado at student.dei.uc.pt> escreveu:
> Hi,
> I have a text entry exercise (interaction), and I need to write text with
> different font colors. When I use <font color="#000000"> example </font> in
> a simple text icon, it works. But when I break text apart with function
> myIcon.breakApart(...) to make the exercise, in preview all text colors
> disappear and shows all the <font> codes, like it was text.
> How can I solve this? I'm using Xerte desktop version.
>
> Thanks,
> Bárbara Furtado
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100912/32e76d5a/attachment.html
More information about the Xerte
mailing list