17.2. 特殊な文字でのコードとテキストの記述
*、| # などの特殊文字や <, > and & などの HTML 文字は \ でエスケープすることができます。
You can write down equations like 2\*3\=6 and HTML tags like \<body\> using the escape character: \\.
<p>
You can write down equations like 2*3=6 and HTML tags
like <body> using the escape character: \.
</p>
また、バッククオート (`) を使ってコードのブロックを囲むことができます。
My code doesn't work:
`for (int i=0; i<100; i--)
{
doSomething();
}`
Any ideas?
<p>
My code doesn't work:
</p>
<pre>for (int i=0; i<100; i--)
{
doSomething();
}</pre>
<p>
Any ideas?
</p>
固定スペースのフォーマット済みテキストのほとんどはコードか特殊文字を伴うため、 インラインの固定スペースフォーマットは常にエスケープします。
This is a |<tag attribute="value"/>| example.
上記のように固定スペースバー内の文字をエスケープしないで記述することができます。 また、その他の方法ではインライン固定スペーステキストをフォーマットすることができないことを意味します。