Kode
Dokumentasi lan conto kanggo nampilake blok kode inline lan multiline nganggo Bootstrap.
Bungkus potongan kode inline nganggo <code>
. Dadi manawa kanggo uwal saka kurung sudut HTML.
Contone,
<section>
kudu dibungkus minangka inline.
For example, <code><section></code> should be wrapped as inline.
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 350px lan menehi scrollbar sumbu-y.
<p>Sample text here...</p>
<p>And another line of sample text here...</p>
<pre><code><p>Sample text here...</p>
<p>And another line of sample text here...</p>
</code></pre>
Kanggo nuduhake variabel nggunakake <var>
tag.
y =
m
x +
b
<var>y</var> = <var>m</var><var>x</var> + <var>b</var>
Gunakake <kbd>
kanggo nuduhake input sing biasane dilebokake liwat keyboard.
Kanggo ngalih direktori, ketik
cdbanjur jeneng direktori.
Kanggo ngowahi setelan, penet ctrl + ,
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>
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>