Còd
Sgrìobhainnean agus eisimpleirean airson a bhith a’ taisbeanadh bhlocaichean còd in-loidhne agus ioma-loidhne le Bootstrap.
Còd a-staigh
Paisg criomagan còd in-loidhne le <code>
. Dèan cinnteach gun teich thu bho camagan ceàrn HTML.
<section>
bu chòir a bhith air a phasgadh mar inline.
For example, <code><section></code> should be wrapped as inline.
Blocaichean còd
Cleachd <pre>
s airson iomadh loidhne de chòd. A-rithist, dèan cinnteach gun teich thu bho camagan ceàrn sam bith sa chòd airson a bhith a’ toirt seachad ceart. Faodaidh tu an .pre-scrollable
clas a chuir ris gu roghnach, a shuidhicheas àirde as àirde de 340px agus a bheir seachad bàr-scrollaidh y-axis.
<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>
Caochlaidhean
Airson caochladairean a chomharrachadh cleachd an <var>
taga.
<var>y</var> = <var>m</var><var>x</var> + <var>b</var>
Teachd-a-steach cleachdaiche
Cleachd an <kbd>
gus cuir a-steach a tha mar as trice air a chuir a-steach tro mheur-chlàr a chomharrachadh.
Gus roghainnean a dheasachadh, brùth 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>
Toradh sampall
Airson sampall toradh bho phrògram a chomharrachadh cleachd an <samp>
taga.
<samp>This text is meant to be treated as sample output from a computer program.</samp>