I&#39;m new using Xerte, I don&#39;t know how to taking the highlighting code routines from xerte editor. Is there an example where I can see it?<br><br>This is an introductory programming course, and in that specific exercise, the user just need to complete the missing words in the java code. I want to color the for loop, etc, so the student can easily read the code, just like in a compiler. So, is not important that the user can interact with individual words in this exercise, but it would be interesting that student can click on some words just to get a little help (about for loop, for example) in a popup window. Its possible to do that on xerte? But this is another problem :)<br>
<br><div class="gmail_quote">2010/9/14 Julian Tenney <span dir="ltr">&lt;<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">











<div link="blue" vlink="purple" lang="EN-GB">

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I see you are trying to highlight code. Have you thought about taking
the highlighting code routines from the xerte editor and using those? It’s
configurable, and it would be easy enough to make a swf component that does
what you need better than formatting each block. I imagine there is a quite a
bit of it?</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Is it important that the user can interact with the individual
words in the code by, say, clicking on them?</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0cm 0cm;">

<p class="MsoNormal" style="margin-left: 36pt;"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US">
<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>
[mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Bárbara
Furtado<br>
<b>Sent:</b> 13 September 2010 18:42<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> Re: [Xerte] text entry interaction with different font colors</span></p>

</div><div><div></div><div class="h5">

<p class="MsoNormal" style="margin-left: 36pt;"> </p>

<p class="MsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;">No, I&#39;m having the same problem with version 2.12,
that is the last one available on website.<br>
<br>
Maybe I&#39;m doing something wrong. The example file is attached in this e-mail,
so you can see what I&#39;m doing wrong. Before the construction of all interaction
code, the text displays fine. The problem is when I break text apart. Can you
help me please? Or send me your example.<br>
<br>
Thanks</p>

<div>

<p class="MsoNormal" style="margin-left: 36pt;">No dia 13 de Setembro de 2010
17:59, Bárbara Furtado &lt;<a href="mailto:bfurtado@student.dei.uc.pt" target="_blank">bfurtado@student.dei.uc.pt</a>&gt;
escreveu:</p>

<p class="MsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;">I&#39;m using version 2.11. I didn&#39;t know about version
2.12... I&#39;ll try that one.<br>
<br>
Thanks</p>

<div>

<p class="MsoNormal" style="margin-left: 36pt;">2010/9/13 Julian Tenney &lt;<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>&gt;</p>

<div>

<div>

<div>

<div>

<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I think you
might need to update your Xerte because mine displays the markup properly.</span></p>

<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<div>

<div style="border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0cm 0cm; border-color: -moz-use-text-color;">

<p class="MsoNormal" style="margin-left: 72pt;"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>
[mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>]
<b>On Behalf Of </b>Julian Tenney<br>
<b>Sent:</b> 12 September 2010 22:48<br>
<b>To:</b> Xerte discussion list</span></p>

<div>

<div>

<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 10pt;" lang="EN-US"><br>
<b>Subject:</b> RE: [Xerte] text entry interaction with different font colors</span></p>

</div>

</div>

</div>

</div>

<div>

<div>

<p class="MsoNormal" style="margin-left: 72pt;"> </p>

<div>

<div>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 10pt; color: black;">no, it splits it
on spaces, so you end up with a bunch of words (the WORD class - you can
then break apart WORDs into characters I grant you). MovieClips are then
created, and textFields, and their text is set. I must be setting.text rather
than .htmlText.There might be a good reason, or it might be an oversight - </span><span style="font-size: 10pt;">I&#39;ll play around and see whats going on,</span></p>

</div>

<div>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 10pt;"> </span></p>

</div>

<div>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 10pt;">J</span></p>

</div>

</div>

<div>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 10pt;"> </span></p>

<div style="margin-left: 36pt;">

<div class="MsoNormal" style="margin-left: 36pt; text-align: center;" align="center"><span style="font-size: 10pt;">

<hr size="2" align="center" width="100%">

</span></div>

</div>

<p class="MsoNormal" style="margin-bottom: 12pt; margin-left: 72pt;"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> on behalf of Dave
Burnett<br>
<b>Sent:</b> Sun 12/09/2010 17:39<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> RE: [Xerte] text entry interaction with different font colors</span></p>

</div>

<div>

<p class="MsoNormal" style="margin-bottom: 12pt; margin-left: 72pt;"><span style="font-size: 10pt;">break apart will break it
out as individual characters.<br>
So my guess is that your html text is also being broken into individual
characters, so is no longer recognized as tags, it&#39;s just characters again and
defaults to black.<br>
<br>
You can set the text properties dynamically with code.<br>
<br>
Dave</span></p>

<div style="margin-left: 36pt;">

<div class="MsoNormal" style="margin-left: 36pt; text-align: center;" align="center"><span style="font-size: 10pt;">

<hr size="2" align="center" width="100%">

</span></div>

</div>

<p class="MsoNormal" style="margin-bottom: 12pt; margin-left: 72pt;"><span style="font-size: 10pt;">Date: Sun, 12 Sep 2010
17:30:53 +0100<br>
Subject: [Xerte] text entry interaction with different font colors<br>
From: <a href="mailto:bfurtado@student.dei.uc.pt" target="_blank">bfurtado@student.dei.uc.pt</a><br>
To: <a href="mailto:xerte@lists.nottingham.ac.uk" target="_blank">xerte@lists.nottingham.ac.uk</a><br>
<br>
Hi,<br>
I&#39;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&#39;m using HTML tags, like this:<br>
<br>
  &lt;font color=&quot;#0000FF&quot;&gt;public static void&lt;/font&gt;
&lt;b&gt;&lt;i&gt;main&lt;/i&gt;&lt;/b&gt;(String[] args) {<br>
   &lt;font color=&quot;#999999&quot;&gt;//declara um array de
inteiros&lt;/font&gt;  <br>
   &lt;font color=&quot;#0000FF&quot;&gt;int&lt;/font&gt;[] A =
&lt;font color=&quot;#0000FF&quot;&gt;new int&lt;/font&gt;[ |3| ];<br>
<br>
It works fine in preview, but when I use the code to break the words apart ( <i><span style="color: rgb(102, 102, 102); background: none repeat scroll 0% 0% white;">w =
mainText.breakApart(3,7,false,false);</span></i> ), in preview HTML tags
display as text. Is there another way to do this? Anyone can help?<br>
<br>
Thanks a lot. And I&#39;m sorry for the repeated e-mail.<br>
<br>
Bárbara Furtado<br>
               
</span></p>

<div>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 10pt;">No dia 12 de Setembro de
2010 00:29, Bárbara Furtado &lt;<a href="mailto:bfurtado@student.dei.uc.pt" target="_blank">bfurtado@student.dei.uc.pt</a>&gt; escreveu:</span></p>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 10pt;">Hi,<br>
I have a text entry exercise (interaction), and I need to write text with
different font colors. When I use &lt;font color=&quot;#000000&quot;&gt;
example &lt;/font&gt; 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 &lt;font&gt; codes, like it was text.<br>
How can I solve this? I&#39;m using Xerte desktop version.<br>
<br>
Thanks,<br>
<span style="color: rgb(136, 136, 136);">Bárbara Furtado</span></span></p>

</div>

<p class="MsoNormal" style="margin-left: 72pt;"><span style="font-size: 10pt;"><br>
<br>
This message and any attachment are intended solely for the addressee and may
contain confidential information. If you have received this message in error,
please send it back to me, and immediately delete it. Please do not use, copy
or disclose the information contained in this message or in any attachment. Any
views or opinions expressed by the author of this email do not necessarily
reflect the views of the University of Nottingham. <br>
This message has been checked for viruses but the contents of an attachment may
still contain software viruses which could damage your computer system: you are
advised to perform your own checks. Email communications with the University of
Nottingham may be monitored as permitted by UK legislation. <br>
<br>
_______________________________________________ Xerte mailing list <a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a>
This message and any attachment are intended solely for the addressee and may
contain confidential information. If you have received this message in error,
please send it back to me, and immediately delete it. Please do not use, copy
or disclose the information contained in this message or in any attachment. Any
views or opinions expressed by the author of this email do not necessarily
reflect the views of the University of Nottingham. This message has been
checked for viruses but the contents of an attachment may still contain
software viruses which could damage your computer system: you are advised to
perform your own checks. Email communications with the University of Nottingham
may be monitored as permitted by UK legislation. </span></p>

</div>

</div>

</div>

</div>

</div>

<p class="MsoNormal" style="margin-left: 36pt;"> </p>

</div>

</div>

<p class="MsoNormal" style="margin-left: 36pt;">_______________________________________________</p>

<div>

<p class="MsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
This message and any attachment are intended solely for the addressee and may
contain confidential information. If you have received this message in error,
please send it back to me, and immediately delete it.   Please do not use,
copy or disclose the information contained in this message or in any
attachment.  Any views or opinions expressed by the author of this email
do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
</p>

</div>

</div>

<p class="MsoNormal" style="margin-left: 36pt;"> </p>

</div>

<p class="MsoNormal" style="margin-left: 36pt;"> </p>

</div></div></div>

</div>


<br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>

<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br></blockquote></div><br>