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>
14 <body onload=
"prettyPrint()">
15 <h2>Syntax Color Test
</h2>
17 <div class=
"str">► Strings
</div>
18 <div class=
"kwd">► Special values like true, nil
</div>
19 <div class=
"com">► Comments
</div>
20 <div class=
"typ">► Class names
</div>
21 <div class=
"lit">► Numbers and character literals
</div>
22 <div class=
"pun">► Punctuation
</div>
23 <div class=
"pln">► Plain text, methods and variable names
</div>
24 <div class=
"tag">► Special variables like super, thisProcess
</div>
25 <div class=
"dec">► Declarations like var, const
</div>
26 <div class=
"atn">► Symbols
</div>
27 <div class=
"atv">► 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)
< 3) { // A comment...
37 (abc: $x, def: \y, ghi: nil);
39 [~bar, zoo, thisProcess.platform];