Koodu
Iwe ati awọn apẹẹrẹ fun iṣafihan opopo ati awọn bulọọki multiline ti koodu pẹlu Bootstrap.
Pa awọn snippets inline ti koodu pẹlu <code>
. Rii daju lati sa fun awọn biraketi igun HTML.
Fun apẹẹrẹ,
<section>
yẹ ki o wa ni ti a we bi inline.
For example, <code><section></code> should be wrapped as inline.
Lo <pre>
s fun ọpọ ila ti koodu. Lẹẹkansi, rii daju pe o sa fun awọn biraketi igun eyikeyi ninu koodu fun ṣiṣe deede. O le ṣe afikun .pre-scrollable
kilaasi ni yiyan, eyiti yoo ṣeto giga-giga ti 350px ati pese ọpa lilọ-y-axis kan.
<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>
Fun afihan awọn oniyipada lo <var>
tag.
y =
m
x +
b
<var>y</var> = <var>m</var><var>x</var> + <var>b</var>
Lo <kbd>
lati tọka titẹ sii ti o jẹ igbagbogbo titẹ nipasẹ keyboard.
Lati yipada awọn ilana, tẹ
cdorukọ ti itọsọna naa tẹle.
Lati ṣatunkọ eto, tẹ ctrl + ,
Lati ṣatunkọ eto, tẹ 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>
Fun afihan abajade ayẹwo lati inu eto kan lo <samp>
tag.
Ọrọ yii jẹ itumọ lati ṣe itọju bi abajade ayẹwo lati inu eto kọnputa kan.
<samp>This text is meant to be treated as sample output from a computer program.</samp>