~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/console/help.html

  • Committer: William Grant
  • Date: 2010-02-23 06:19:51 UTC
  • Revision ID: grantw@unimelb.edu.au-20100223061951-rab91fqhc5o3pbin
Make the console example a bit more plausible (ie. use a real session transcript).

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    Python Console (example)
41
41
  </div>
42
42
  <div class="console_help_example_body">
43
 
    <div class="console_output">
44
 
      <code>
45
 
        <span style="color:#800">&gt;&gt;&gt;</span>
46
 
        <span style="color:gray">i</span><br/>
47
 
        <span style="color:red">name 'i' is not defined</span><br/>
48
 
        <span style="color:#800">&gt;&gt;&gt; </span>
49
 
        <span style="color:gray">i=2</span><br/>
50
 
        <span style="color:#800">&gt;&gt;&gt; </span>
51
 
        <span style="color:gray">print i</span><br/>
52
 
        2
53
 
      </code>
54
 
    </div>
 
43
    <pre class="console_output outputMsg">
 
44
<span class="inputPrompt">&gt;&gt;&gt; </span> <span class="inputMsg">i</span>
 
45
<span class="errorMsg">Traceback (most recent call last):
 
46
File "&lt;web session&gt;", line 1, in &lt;module&gt;
 
47
NameError: name 'i' is not defined</span>
 
48
<span class="inputPrompt">&gt;&gt;&gt; </span><span class="inputMsg">i = 2</span>
 
49
<span class="inputPrompt">&gt;&gt;&gt; </span><span class="inputMsg">if i == 2:</span>
 
50
<span class="inputPrompt">... </span><span class="inputMsg">    print i</span>
 
51
<span class="inputPrompt">... </span><span class="inputMsg"></span>
 
52
2</pre>
55
53
    <div class="console_input">
56
54
      <div>
57
55
        <div>