plugins: VarLag fix
[supercollider.git] / HelpSource / syntax_colors.html
blob90577d53f6b4de42a2d81d9254dc1cb1bddb57f3
1 <html>
2 <head>
3 <title>SCDoc syntax color test</title>
4 <link rel='stylesheet' href='./scdoc.css' type='text/css' />
5 <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
6 <script src="prettify.js" type="text/javascript"></script>
7 <script src="lang-sc.js" type="text/javascript"></script>
8 </head>
9 <style>
10 body {
11 margin: 1em;
13 </style>
14 <body onload="prettyPrint()">
15 <h2>Syntax Color Test</h2>
16 <p>
17 <div class="str">&#9658; Strings</div>
18 <div class="kwd">&#9658; Special values like true, nil</div>
19 <div class="com">&#9658; Comments</div>
20 <div class="typ">&#9658; Class names</div>
21 <div class="lit">&#9658; Numbers and character literals</div>
22 <div class="pun">&#9658; Punctuation</div>
23 <div class="pln">&#9658; Plain text, methods and variable names</div>
24 <div class="tag">&#9658; Special variables like super, thisProcess</div>
25 <div class="dec">&#9658; Declarations like var, const</div>
26 <div class="atn">&#9658; Symbols</div>
27 <div class="atv">&#9658; Environment vars</div>
29 <pre class="code prettyprint lang-sc">
30 /* Some example nonsense code to test syntax coloring */
32 ~foo = SomeClass.new(\abc, 123, "xyz") { |one, two, three=42.7|
33 var myVariable, test = pi*5, bool = true;
35 if ((two & one) &lt; 3) { // A comment...
36 "hello".postln;
37 (abc: $x, def: \y, ghi: nil);
38 } {
39 [~bar, zoo, thisProcess.platform];
43 Routine {
44 inf.do {|i|
45 ("count"+i).postln;
46 5.0.rand.wait;
48 }.play;
49 </pre>
51 </body>
52 </html>