代码 | Code
Code
内联
用代码包装内联代码片段<code>
。
For example, <code><section></code> should be wrapped as inline.
用户输入
使用<kbd>
来指示通常通过键盘输入的输入。
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>
基本块
使用<pre>
了多行代码。请务必在代码中转义任何尖括号以进行适当的渲染。
<pre><p>Sample text here...</p></pre>
您可以选择添加.pre-scrollable
该类,该类将设置350px的最大高度并提供一个y轴滚动条。
变量
为了指示变量,使用<var>
标签。
<var>y</var> = <var>m</var><var>x</var> + <var>b</var>
示例输出
用于指示程序段的样本输出使用<samp>
标签。
<samp>This text is meant to be treated as sample output from a computer program.</samp>
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com