28 lines
534 B
Java
28 lines
534 B
Java
<p>The C-like component is not really a language on its own,
|
|
it is the basis of many other components. To use it directly, however,
|
|
use the class <code class="language-none">"language-clike"</code>.</p>
|
|
|
|
<h2>Comments</h2>
|
|
<pre><code>// Single line comment
|
|
/* Multi-line
|
|
comment */</code></pre>
|
|
|
|
<h2>Strings</h2>
|
|
<pre><code>"foo \"bar\" baz";
|
|
'foo \'bar\' baz';</code></pre>
|
|
|
|
<h2>Numbers</h2>
|
|
<pre><code>123
|
|
123.456
|
|
-123.456
|
|
1e-23
|
|
123.456E789
|
|
0xaf
|
|
0xAF
|
|
</code></pre>
|
|
|
|
<h2>Functions</h2>
|
|
<pre><code>foo();
|
|
Bar();
|
|
_456();
|
|
</code></pre> |