Skip to content

Commit

Permalink
Added alternatives to enter for executing code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jost Muxfeldt committed Jun 21, 2009
1 parent 67cc51c commit 83c0b68
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 29 deletions.
12 changes: 6 additions & 6 deletions build/Help/Tutorials/Getting-Started/First Steps.html
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="824.41">
<meta name="CocoaVersion" content="949.46">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Helvetica}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
Expand All @@ -14,17 +14,17 @@
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco}
p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #606060}
p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; min-height: 12.0px}
p.p8 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #0027ee}
p.p8 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #0000f1}
p.p9 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica; min-height: 17.0px}
span.s1 {color: #000000}
span.s2 {font: 9.0px Monaco}
span.s3 {font: 12.0px Helvetica; color: #000000}
span.s4 {font: 12.0px Helvetica}
span.s5 {font: 9.0px Monaco; color: #606060}
span.s6 {color: #ba1100}
span.s6 {color: #c10000}
span.s7 {text-decoration: underline}
span.s8 {font: 12.0px Helvetica; color: #0000ff}
span.s9 {color: #0036f5}
span.s8 {font: 12.0px Helvetica; color: #0000c1}
span.s9 {color: #0000c1}
span.Apple-tab-span {white-space:pre}
</style>
</head>
Expand Down Expand Up @@ -54,7 +54,7 @@
<p class="p2"><br></p>
<p class="p6"><span class="s1"><span class="Apple-tab-span"> </span></span>"Hello World!"<span class="s1">.postln;</span></p>
<p class="p2"><br></p>
<p class="p4">To execute it, simply click to place the cursor on the same line as the code and then press the enter key. Note that the 'enter' key is not the same as the 'return' key. The 'enter' key is the one that is on the number pad. On Mac laptops there is usually a separate enter key down at bottom of the keyboard towards the right, or you can hold down the 'fn' or function key, and press 'return'. Try this now.</p>
<p class="p4">To execute it, simply click to place the cursor on the same line as the code and then press the enter key. Note that the 'enter' key is not the same as the 'return' key. The 'enter' key is the one that is on the number pad. On Mac laptops there is usually a separate enter key down at bottom of the keyboard towards the right, or you can hold down the 'fn' or function key, and press 'return'.<span class="Apple-converted-space">  </span>If you don't have an enter key, then you can use ctrl-Return, Ctrl-c, or fn-Return( on Some Macs).Try this now.</p>
<p class="p2"><br></p>
<p class="p4">If all went well, you should see this in the post window.</p>
<p class="p2"><br></p>
Expand Down
16 changes: 8 additions & 8 deletions build/Help/Tutorials/How-to-Use-the-Interpreter.html
Expand Up @@ -5,22 +5,22 @@
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="824.48">
<meta name="CocoaVersion" content="949.46">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Helvetica}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; min-height: 12.0px}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #c40000}
p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #c40000; min-height: 12.0px}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #c10000}
p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #c10000; min-height: 12.0px}
p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco}
p.p8 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Helvetica; min-height: 11.0px}
span.s1 {color: #000000}
span.s2 {color: #0010c4}
span.s2 {color: #0000c1}
span.s3 {font: 12.0px Monaco}
span.s4 {color: #0000ff}
span.s4 {text-decoration: underline ; color: #0000c1}
span.s5 {color: #606060}
span.s6 {color: #c40000}
span.s6 {color: #c10000}
span.Apple-tab-span {white-space:pre}
</style>
</head>
Expand All @@ -30,7 +30,7 @@
<p class="p3">This document is OSX specific in key commands, though the principles extend to all platforms. For the linux emacs sclang interface please see<span class="Apple-converted-space">  </span>linux specific documentation.</p>
<p class="p2"><br></p>
<p class="p3">You can execute any single line expression by clicking anywhere in that line and pressing the <b>'Enter'</b> key.</p>
<p class="p3"><b>Note that the 'Enter' key is not the same key as 'Return'.</b></p>
<p class="p3"><b>Note that the 'Enter' key is not the same key as 'Return'. </b>If you don't have an enter key, then you can use ctrl-Return, Ctrl-c, or fn-Return( on Some Macs).</p>
<p class="p2"><br></p>
<p class="p3">You will need to start the default server before you can hear any examples. By convention the default server is assigned to the interpreter variable 's'. (At startup the default will be the localhost server.) You can start the server app by pressing the 'Boot' button on the localhost server window, or you can do it in code:</p>
<p class="p4"><br></p>
Expand All @@ -45,7 +45,7 @@
<p class="p2"><br></p>
<p class="p3">In the help files all executable fragments are written in the <span class="s3">Monaco</span> font.</p>
<p class="p2"><br></p>
<p class="p3">If an expression has multiple lines you can select all of the lines before typing 'Enter'. Note that this example uses <a href="../GUI/GUI-Tools/GUI.html"><span class="s4">GUI</span></a> objects that are standard in Mac OSX. Windows and Linux platforms can run this using SwingOSC. SwingOSC is installed as part of the Windows package. Linux users might need to download SwingOSC for themselves. <a href="http://www.sciss.de/swingOSC/">http://www.sciss.de/swingOSC/</a></p>
<p class="p3">If an expression has multiple lines you can select all of the lines before typing 'Enter'. Note that this example uses <a href="../GUI/GUI-Tools/GUI.html"><span class="s2">GUI</span></a> objects that are standard in Mac OSX. Windows and Linux platforms can run this using SwingOSC. SwingOSC is installed as part of the Windows package. Linux users might need to download SwingOSC for themselves. <a href="http://www.sciss.de/swingOSC/"><span class="s4">http://www.sciss.de/swingOSC/</span></a></p>
<p class="p2"><br></p>
<p class="p5">// Select all 9 of the following lines and press 'Enter':</p>
<p class="p7">w = <span class="s2">Window</span>.new(<span class="s5">"Fading"</span>).front;<span class="Apple-converted-space"> </span></p>
Expand Down
Expand Up @@ -5,16 +5,16 @@
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="824.42">
<meta name="CocoaVersion" content="949.46">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; min-height: 12.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #a71e12}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #a71e12; min-height: 12.0px}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #a91e0e}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #a91e0e; min-height: 12.0px}
p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Lucida Grande}
span.s1 {color: #0019b7}
span.s1 {color: #0018b9}
span.Apple-tab-span {white-space:pre}
</style>
</head>
Expand All @@ -35,7 +35,7 @@
<p class="p2"><br></p>
<p class="p4">////////////////////////////////////////////////////////////////////////////////////////////////////</p>
<p class="p2"><br></p>
<p class="p3">To run more than one line of code, select all the lines and press &lt;enter&gt;.<span class="Apple-converted-space"> </span></p>
<p class="p3">To run more than one line of code, select all the lines and press &lt;enter&gt;. If you don't have an enter key, then you can use ctrl-Return, Ctrl-c, or fn-Return( on Some Macs).</p>
<p class="p2"><br></p>
<p class="p3">To help with the selection process, examples with more than one line often are placed in enclosing parentheses. In such cases, select the text by clicking immediately to the right of the top parenthesis or to the left of the bottom parenthesis. Or, with the cursor to the right of the top parenthesis or the left of the bottom one, press cmd-shift-b.</p>
<p class="p2"><br></p>
Expand Down
20 changes: 10 additions & 10 deletions build/Help/Tutorials/Tutorial.html
Expand Up @@ -5,27 +5,27 @@
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="949.33">
<meta name="CocoaVersion" content="949.46">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Helvetica}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #0021e7}
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #0000bf}
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica}
p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #77301c}
p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #bf0000}
p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco}
p.p8 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; min-height: 12.0px}
p.p9 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica; min-height: 17.0px}
p.p10 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #606060}
p.p11 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #1438a8}
p.p12 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #55662b}
p.p11 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #0000bf}
p.p12 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #007300}
span.s1 {color: #000000}
span.s2 {color: #1438a8}
span.s2 {color: #0000bf}
span.s3 {font: 14.0px Helvetica}
span.s4 {color: #002bf0}
span.s5 {color: #55662b}
span.s4 {color: #0000bf}
span.s5 {color: #007300}
span.s6 {color: #606060}
span.s7 {color: #77301c}
span.s7 {color: #bf0000}
span.Apple-tab-span {white-space:pre}
</style>
</head>
Expand All @@ -50,7 +50,7 @@
<p class="p6">// set the interpreter variable s to the internal server object.</p>
<p class="p7">s = <span class="s2">Server</span>.internal;</p>
<p class="p8"><br></p>
<p class="p3"><span class="s3"><b>VERY IMPORTANT: </b></span>This line must be executed for the variable 's' to be set. The mechanics are different depending on your platform. The MacOSX standard is to place the cursor anywhere on this line and press the "Enter" key on the numeric keypad. Pressing the main return key does not execute code! This allows you to write code fragments of multiple lines. To execute a multi-line block of code, select the block and press "Enter." For convenience, a code block can be enclosed in parentheses, and the entire block selected by double-clicking just inside either parenthesis. (For linux or Windows instructions, consult the documentation specific to that platform.)</p>
<p class="p3"><span class="s3"><b>VERY IMPORTANT: </b></span>This line must be executed for the variable 's' to be set. The mechanics are different depending on your platform. The MacOSX standard is to place the cursor anywhere on this line and press the "Enter" key on the numeric keypad. Pressing the main return key does not execute code! This allows you to write code fragments of multiple lines. To execute a multi-line block of code, select the block and press "Enter." For convenience, a code block can be enclosed in parentheses, and the entire block selected by double-clicking just inside either parenthesis. (For linux or Windows instructions, consult the documentation specific to that platform.) <span class="Apple-converted-space">  </span>If you don't have an enter key, then you can use ctrl-Return, Ctrl-c, or fn-Return( on Some Macs).</p>
<p class="p2"><br></p>
<p class="p3">The local server runs on the same machine as the SuperCollider application, but is a separate program, 'scsynth'. <b>Note:</b> By default the interpreter variable s is set to the local server at startup. For further information see the <a href="../ServerArchitecture/Server.html"><span class="s4"><b>Server</b></span></a> helpfile.</p>
<p class="p2"><br></p>
Expand Down

0 comments on commit 83c0b68

Please sign in to comment.