diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-12-26 11:44:14 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-12-26 11:44:14 -0800 |
commit | 204dae921abff0c70e017215bb3c91fa6ca11aff (patch) | |
tree | 548788d18c881e3f6beb56133c1ca9d733ffa1e8 /html/global.mu.html | |
parent | e5c11a5137d538b7713dd8708ca767c208824c06 (diff) | |
download | mu-204dae921abff0c70e017215bb3c91fa6ca11aff.tar.gz |
3710
Turns out we don't need to explicitly add anchors for each line. Vim's TOhtml has magic for that out of the box.
Diffstat (limited to 'html/global.mu.html')
-rw-r--r-- | html/global.mu.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/html/global.mu.html b/html/global.mu.html index b34ca32c..fdc63011 100644 --- a/html/global.mu.html +++ b/html/global.mu.html @@ -52,20 +52,20 @@ if ('onhashchange' in window) { </head> <body onload='JumpToLine();'> <pre id='vimCodeElement'> -<a name="L1"></a><span id="L1" class="LineNr"> 1 </span><span class="Comment"># example program: creating and using global variables</span> -<a name="L2"></a><span id="L2" class="LineNr"> 2 </span> -<a name="L3"></a><span id="L3" class="LineNr"> 3 </span><span class="muRecipe">def</span> main [ -<a name="L4"></a><span id="L4" class="LineNr"> 4 </span> <span class="Comment"># allocate 5 locations for globals</span> -<a name="L5"></a><span id="L5" class="LineNr"> 5 </span> <span class="Constant">global-space</span>:space <span class="Special"><-</span> new <span class="Constant">location:type</span>,<span class="Constant"> 5</span> -<a name="L6"></a><span id="L6" class="LineNr"> 6 </span> <span class="Comment"># read to globals by using /space:global</span> -<a name="L7"></a><span id="L7" class="LineNr"> 7 </span> <span class="Special">1:num/space:global</span> <span class="Special"><-</span> copy<span class="Constant"> 3</span> -<a name="L8"></a><span id="L8" class="LineNr"> 8 </span> foo -<a name="L9"></a><span id="L9" class="LineNr"> 9 </span>] -<a name="L10"></a><span id="L10" class="LineNr">10 </span> -<a name="L11"></a><span id="L11" class="LineNr">11 </span><span class="muRecipe">def</span> foo [ -<a name="L12"></a><span id="L12" class="LineNr">12 </span> <span class="Comment"># ditto for writing to globals</span> -<a name="L13"></a><span id="L13" class="LineNr">13 </span> $print <span class="Special">1:num/space:global</span>, <span class="Constant">10/newline</span> -<a name="L14"></a><span id="L14" class="LineNr">14 </span>] +<span id="L1" class="LineNr"> 1 </span><span class="Comment"># example program: creating and using global variables</span> +<span id="L2" class="LineNr"> 2 </span> +<span id="L3" class="LineNr"> 3 </span><span class="muRecipe">def</span> main [ +<span id="L4" class="LineNr"> 4 </span> <span class="Comment"># allocate 5 locations for globals</span> +<span id="L5" class="LineNr"> 5 </span> <span class="Constant">global-space</span>:space <span class="Special"><-</span> new <span class="Constant">location:type</span>,<span class="Constant"> 5</span> +<span id="L6" class="LineNr"> 6 </span> <span class="Comment"># read to globals by using /space:global</span> +<span id="L7" class="LineNr"> 7 </span> <span class="Special">1:num/space:global</span> <span class="Special"><-</span> copy<span class="Constant"> 3</span> +<span id="L8" class="LineNr"> 8 </span> foo +<span id="L9" class="LineNr"> 9 </span>] +<span id="L10" class="LineNr">10 </span> +<span id="L11" class="LineNr">11 </span><span class="muRecipe">def</span> foo [ +<span id="L12" class="LineNr">12 </span> <span class="Comment"># ditto for writing to globals</span> +<span id="L13" class="LineNr">13 </span> $print <span class="Special">1:num/space:global</span>, <span class="Constant">10/newline</span> +<span id="L14" class="LineNr">14 </span>] </pre> </body> </html> |