Code
インラインコード, マルチラインブロックの表示例です。
Inline code
インラインスニペットは <code> で囲みます。<code> の中でHTMLを表現するときはサンプルのようにエスケープが必要です。
For example,
<section> should be wrapped as inline.
For example, <code><section></code> should be wrapped as inline.Code blocks
複数行のコードには <pre> を使用します。
.pre-scrollable クラスを使用して max-height : 340px のスクロールバーを利用することができます。
<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>Variables
変数を表示するには <var>タグを使います。
y = mx + b
<var>y</var> = <var>m</var><var>x</var> + <var>b</var>User input
キーボードを表現するには <kbd> タグを使います。
To switch directories, type cd followed by the name of the directory.
To edit settings, press ctrl + ,
To edit settings, press 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>Sample output
codeのSampleを表示するには <samp> タグを使います。
This text is meant to be treated as sample output from a computer program.
<samp>This text is meant to be treated as sample output from a computer program.</samp>