Difference between revisions of "Help:Contents"

From Progzoo
Jump to: navigation, search
Line 21: Line 21:
  
 
<dt><code>&lt;prog&gt;</code>
 
<dt><code>&lt;prog&gt;</code>
<dd> this tag contains the program fragment that appears in the text box by default. Students edit this text to produce the answer. Most questions include a program fragment that is "nearly" right. Notice that the &lt; characters is written &amp;lt;, we need to do this because the code tag prog tag must be well formed XML.
+
<dd> this tag contains the program fragment that appears in the text box by default. Students edit this text to produce the answer. Most questions include a program fragment that is "nearly" right. Notice that the &lt; characters is written &amp;lt;, we need to do this because the <code>question</code> tag must be well formed XML.
 
</dl>
 
</dl>
  

Revision as of 11:39, 4 December 2007

The progzoo Wiki permits normal wiki text but it also allows interactive components. See http://www.mediawiki.org/wiki/Help:Formatting for help on "normal" Wiki text.

The progzoo XML Elements

To support progzoo's unique capabilities the interactive components are described in <question> tags. Each such tag will be translated into a textbox with the submit button.

<question className="Demo">
This is the text of the question. You can use html markup.
<prog lang='java'>
static void doIt(){
  for (int i=0;i&lt;10;i++)
    System.out.println(i);
}
<prog>
</question>

Explanation

className</td>
is required for Java and C#. This should match the class name in the program.
<prog>
this tag contains the program fragment that appears in the text box by default. Students edit this text to produce the answer. Most questions include a program fragment that is "nearly" right. Notice that the < characters is written &lt;, we need to do this because the question tag must be well formed XML. </dl>

Translating Existing Material

Translate contains text that can be copied and pasted into this editor.

To Do list

TODO Some jobs that need to be done on the web site.