Debian Codegraph @

examples/prism-applescript.html

raw symbols SCIP
1 <h2>Comments</h2>
2 <pre><code>-- Single line comment
3 #!/usr/bin/osascript
4 (* Here is
5 a block
6 comment *)</code></pre>
7
8 <h2>Strings</h2>
9 <pre><code>"foo \"bar\" baz"</code></pre>
10
11 <h2>Operators</h2>
12 <pre><code>a ≠ b
13 12 + 2 * 5
14 "DUMPtruck" is equal to "dumptruck"
15 "zebra" comes after "aardvark"
16 { "this", "is", 2, "cool" } starts with "this"
17 { "is", 2} is contained by { "this", "is", 2, "cool" }
18 set docRef to a reference to the first document
19 </code></pre>
20
21 <h2>Classes and units</h2>
22 <pre><code>tell application "Finder"
23 text 1 thru 5 of "Bring me the mouse."
24 set averageTemp to 63 as degrees Fahrenheit
25 set circleArea to (pi * 7 * 7) as square yards
26 </code></pre>