Debian Codegraph @

examples/prism-vala.html

raw symbols SCIP
1 <h2>Comments</h2>
2 <pre><code>// Single line comment
3 /** Multi-line
4 doc comment */</code></pre>
5
6 <h2>Strings</h2>
7 <pre><code>"foo \"bar\" baz"
8 "Multi-line strings ending with a \
9 are supported too."
10 """Verbatim strings
11 You can create
12 multi-line strings like this too."""
13 @"Template string with variables $var1 $(var2 * 2)"</code></pre>
14
15 <h2>Regex</h2>
16 <pre><code>/foo?[ ]*bar/</code></pre>
17
18 <h2>Full example</h2>
19 <pre><code>using Gtk;
20
21 int main (string[] args) {
22 Gtk.init(ref args);
23
24 var window = new Window();
25
26 var button = new Button.with_label("Click me!");
27
28 window.add(button);
29 window.show_all();
30
31 Gtk.main();
32 return 0;
33 }</code></pre>