Debian Codegraph @

examples/prism-powershell.html

raw symbols SCIP
1 <h2>Comments</h2>
2 <pre><code># This is a comment
3 &lt;# This is a
4 multi-line comment #></code></pre>
5
6 <h2>Variable Interpolation</h2>
7 <pre><code>$Name = "Alice"
8 Write-Host "Hello, my name is $Name."</code></pre>
9
10 <h2>Full Example</h2>
11 <pre><code>Function SayHello([string]$name) {
12 Write-Host "Hello, $name."
13 }
14 $Names = @("Bob", "Alice")
15
16 $Names | ForEach {
17 SayHello $_
18 }
19 </code></pre>