Skip to content

Commit 42c6ffa

Browse files
committed
Build Joe7M's changes.
1 parent d3c6eb1 commit 42c6ffa

37 files changed

Lines changed: 605 additions & 509 deletions

index.html

Lines changed: 68 additions & 43 deletions
Large diffs are not rendered by default.

pages/guide.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,10 +360,10 @@ <h3 id="Meta">Meta-commands</h3>
360360
<p>Examples</p>
361361
<pre><code>#inc:&quot;mylib.bas&quot;
362362
...
363-
MyLibProc &quot;Hi&quot;
364-
*Arrays and Matrices*
365-
Define a 3x2 matrix
366-
A = [11, 12; 21, 22; 31, 32]</code></pre>
363+
MyLibProc &quot;Hi&quot;</code></pre>
364+
<h3 id="arrays-and-matrices">Arrays and Matrices</h3>
365+
<p>Define a 3x2 matrix</p>
366+
<p><code>A = [11, 12; 21, 22; 31, 32]</code></p>
367367
<p>That creates the array</p>
368368
<table>
369369
<tbody>
@@ -746,7 +746,7 @@ <h2 id="loops-and-expressions">Loops and expressions</h2>
746746
<p>Of course, it is much faster too.</p>
747747
</div>
748748
<div class="pagefooter">
749-
This page was last edited on Thu, 22 Dec 2022 14:05:08 +0100
749+
This page was last edited on Wed, 18 Oct 2023 15:34:02 +0200
750750
|
751751
<a href="https://en.wikipedia.org/wiki/Markdown" target="_blank" rel="nofollow">Markdown</a>
752752
processed with

reference/1015.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ <h1>DEFINEKEY</h1>
7373
<a href="/pages/console.html">Console</a>
7474
</p>
7575
</div>
76-
<p>Binds a keystroke to a user defined function. To unbind the keystroke definition pass 0 as the <code>sub</code> argument.</p>
76+
<p>Binds a keycode <code>k</code> to a user defined sub routine <code>sub</code>. When the key is pressed, the coresponding sub routine will be called. To unbind the keycode definition pass <code>0</code> as the <code>sub</code> argument.</p>
7777
<p>Keycodes for PC keyboard</p>
7878
<table>
7979
<thead>
@@ -177,7 +177,7 @@ <h1>DEFINEKEY</h1>
177177
</tr>
178178
</tbody>
179179
</table>
180-
<h2 id="examples">Examples</h2>
180+
<h3 id="examples">Examples</h3>
181181
<p>Example 1: Bind keystroke for left and right arrow key</p>
182182
<div class="sourceCode" id="cb1"><pre class="sourceCode smallbasic"><code class="sourceCode smallbasic"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true"></a><span class="kw">defineKey</span> <span class="dv">0xFF04</span>, Increase <span class="co">&#39;Left arrow</span></span>
183183
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true"></a><span class="kw">defineKey</span> <span class="dv">0xFF05</span>, Decrease <span class="co">&#39;Right arrow</span></span>
@@ -195,9 +195,9 @@ <h2 id="examples">Examples</h2>
195195
<span id="cb1-14"><a href="#cb1-14" aria-hidden="true"></a> <span class="fu">at</span> <span class="dv">0</span>,<span class="dv">0</span>: <span class="kw">print</span> t + <span class="st">&quot;: &quot;</span> + x + <span class="st">&quot; &quot;</span></span>
196196
<span id="cb1-15"><a href="#cb1-15" aria-hidden="true"></a> <span class="fu">delay</span>(<span class="dv">50</span>)</span>
197197
<span id="cb1-16"><a href="#cb1-16" aria-hidden="true"></a><span class="kw">wend</span></span></code></pre></div>
198-
<p>Example 2: Unbind a keystroke</p>
198+
<h3 id="example-2-unbind-a-keystroke">Example 2: Unbind a keystroke</h3>
199199
<div class="sourceCode" id="cb2"><pre class="sourceCode smallbasic"><code class="sourceCode smallbasic"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true"></a><span class="kw">DEFINEKEY</span> <span class="dv">0xFF04</span>, <span class="dv">0</span></span></code></pre></div>
200-
<p>Example 3: Etch-a-Sketch</p>
200+
<h3 id="example-3-etch-a-sketch">Example 3: Etch-a-Sketch</h3>
201201
<div class="sourceCode" id="cb3"><pre class="sourceCode smallbasic"><code class="sourceCode smallbasic"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true"></a><span class="co">&#39; DEFINEKEY demo.bas SmallBASIC 0.12.2 [B+=MGA] 2016-03-30</span></span>
202202
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true"></a><span class="co">&#39;remember Etch-A-Sketch?</span></span>
203203
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true"></a><span class="co">&#39;definekey key,sub</span></span>
@@ -261,7 +261,7 @@ <h2 id="examples">Examples</h2>
261261
<span id="cb3-61"><a href="#cb3-61" aria-hidden="true"></a><span class="kw">sub </span>quit</span>
262262
<span id="cb3-62"><a href="#cb3-62" aria-hidden="true"></a> <span class="kw">stop</span></span>
263263
<span id="cb3-63"><a href="#cb3-63" aria-hidden="true"></a><span class="kw">end</span></span></code></pre></div>
264-
<p>Example 4: This example is outdated and just a reference for buttons in PALM OS</p>
264+
<h3 id="example-4-this-example-is-outdated-and-just-a-reference-for-buttons-in-palm-os">Example 4: This example is outdated and just a reference for buttons in PALM OS</h3>
265265
<div class="sourceCode" id="cb4"><pre class="sourceCode smallbasic"><code class="sourceCode smallbasic"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true"></a><span class="co">&#39; Note:</span></span>
266266
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true"></a><span class="co">&#39; * You may Include &quot;definekey_const.bas&quot; file in another file to make your code more clear.</span></span>
267267
<span id="cb4-3"><a href="#cb4-3" aria-hidden="true"></a><span class="co">&#39;</span></span>
@@ -405,7 +405,7 @@ <h2 id="examples">Examples</h2>
405405
</div>
406406
</div>
407407
<div class="pagefooter">
408-
This page was last edited on Tue, 12 Sep 2023 19:20:08 +0930
408+
This page was last edited on Thu, 19 Oct 2023 15:37:25 +0200
409409
|
410410
<a href="https://en.wikipedia.org/wiki/Markdown" target="_blank" rel="nofollow">Markdown</a>
411411
processed with

reference/1429.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ <h4>SmallBASIC</h4>
6565
</div>
6666
<div class="article">
6767
<h1>SHOWPAGE</h1>
68-
<blockquote>SHOWPAGE</blockquote>
68+
<blockquote>SHOWPAGE ([n])</blockquote>
6969
<div class="siteSub">
7070
<p>
7171
<a href="/">Home</a> &gt;
7272
<a href="/pages/reference.html">Reference</a> &gt;
7373
<a href="/pages/graphics.html">Graphics</a>
7474
</p>
7575
</div>
76-
<p>This command is used to display pending graphics operations allowing for smooth animations.</p>
76+
<p>This command is used to display pending graphics operations allowing for smooth animations. If SHOWPAGE is used, the internal SmallBASIC graphics update mechanism is set to manual mode. To enable automatic mode again, call SHOWPAGE with the optional parameter <code>n = 1</code>. This is useful, if the FORM command is used to display GUI elements.</p>
7777
<h3 id="example">Example</h3>
7878
<div class="sourceCode" id="cb1"><pre class="sourceCode smallbasic"><code class="sourceCode smallbasic"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true"></a><span class="kw">for </span>x = <span class="dv">10</span> <span class="kw">to</span> <span class="dv">100</span></span>
7979
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true"></a> <span class="fu">cls</span></span>
@@ -166,7 +166,7 @@ <h3 id="example">Example</h3>
166166
</div>
167167
</div>
168168
<div class="pagefooter">
169-
This page was last edited on Thu, 13 Apr 2023 13:58:49 +0200
169+
This page was last edited on Fri, 6 Oct 2023 19:59:03 +0200
170170
|
171171
<a href="https://en.wikipedia.org/wiki/Markdown" target="_blank" rel="nofollow">Markdown</a>
172172
processed with

reference/1522.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ <h4>SmallBASIC</h4>
6565
</div>
6666
<div class="article">
6767
<h1>CWD</h1>
68-
<blockquote>CWD</blockquote>
68+
<blockquote>s = CWD</blockquote>
6969
<div class="siteSub">
7070
<p>
7171
<a href="/">Home</a> &gt;
@@ -74,6 +74,7 @@ <h1>CWD</h1>
7474
</p>
7575
</div>
7676
<p>Gets current working directory.</p>
77+
<h3 id="example">Example</h3>
7778
<div class="sourceCode" id="cb1"><pre class="sourceCode smallbasic"><code class="sourceCode smallbasic"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true"></a><span class="kw">print</span> <span class="fu">cwd</span></span></code></pre></div>
7879
<div class="lavenderBox">
7980
<div class="header">Code samples using CWD</div>
@@ -137,7 +138,7 @@ <h1>CWD</h1>
137138
</div>
138139
</div>
139140
<div class="pagefooter">
140-
This page was last edited on Sun, 18 Dec 2022 20:24:14 +0100
141+
This page was last edited on Thu, 19 Oct 2023 15:11:38 +0200
141142
|
142143
<a href="https://en.wikipedia.org/wiki/Markdown" target="_blank" rel="nofollow">Markdown</a>
143144
processed with

0 commit comments

Comments
 (0)