Dokumentasi lan conto kanggo nampilake blok kode inline lan multiline nganggo Bootstrap.

Kode inline

Bungkus potongan kode inline nganggo <code>. Dadi manawa kanggo uwal saka kurung sudut HTML.

Contone, <section>kudu dibungkus minangka inline.
For example, <code>&lt;section&gt;</code> should be wrapped as inline.

Blok kode

Gunakake <pre>s kanggo sawetara baris kode. Sawise maneh, dadi manawa kanggo uwal sembarang kurung amba ing kode kanggo Rendering tepat. Sampeyan bisa nambah kelas kanthi opsional .pre-scrollable, sing bakal nyetel dhuwur maksimal 340px lan menehi scrollbar sumbu-y.

<p>Sample text here...</p>
<p>And another line of sample text here...</p>
<pre><code>&lt;p&gt;Sample text here...&lt;/p&gt;
&lt;p&gt;And another line of sample text here...&lt;/p&gt;
</code></pre>

Variabel

Kanggo nuduhake variabel nggunakake <var>tag.

y = m x + b
<var>y</var> = <var>m</var><var>x</var> + <var>b</var>

Input pangguna

Gunakake <kbd>kanggo nuduhake input sing biasane dilebokake liwat keyboard.

Kanggo ngalih direktori, ketik cdbanjur jeneng direktori.
Kanggo ngowahi setelan, penet ctrl + ,
To switch directories, type <kbd>cd</kbd> followed by the name of the directory.<br>
To edit settings, press <kbd><kbd>ctrl</kbd> + <kbd>,</kbd></kbd>

Output sampel

Kanggo nuduhake output sampel saka program nggunakake <samp>tag.

Teks iki dimaksudaké kanggo dianggep minangka conto output saka program komputer.
<samp>This text is meant to be treated as sample output from a computer program.</samp>