代码
使用 Bootstrap 显示内联和多行代码块的文档和示例。
内联代码
用 .包裹内联代码片段<code>。请务必转义 HTML 尖括号。
       例如, 
      
 
     <section>应包装为内联。 
     For example, <code><section></code> should be wrapped as inline.代码块
将<pre>s 用于多行代码。再次,确保转义代码中的任何尖括号以进行正确渲染。您可以选择添加.pre-scrollable该类,它将设置最大高度为 340 像素并提供一个 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>变量
对于指示变量,请使用<var>标签。
 
      y = 
       m 
      x + 
       b 
     
 
     <var>y</var> = <var>m</var><var>x</var> + <var>b</var>用户输入
使用<kbd>表示通常通过键盘输入的输入。
       要切换目录,请键入 
      cd后跟目录的名称。
      
要编辑设置,请按 ctrl + ,
 
     要编辑设置,请按 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>样本输出
为了指示程序的示例输出,请使用<samp>标签。
 
      此文本应被视为计算机程序的示例输出。 
     
 
     <samp>This text is meant to be treated as sample output from a computer program.</samp>