Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

17.2. Entering code and text with special characters


Special characters such as *, | and #, and HTML characters such as <</literal>, <literal>> and & can be escaped with \:
        You can write down equations like 2\*3\=6 and HTML tags
        like \<body\> using the escape character: \\.
Copy to Clipboard Toggle word wrap
<p> 
  You can write down equations like 2*3=6 and HTML tags
  like &lt;body&gt; using the escape character: \. 
</p>
Copy to Clipboard Toggle word wrap
And we can quote code blocks with backticks:
        My code doesn't work:

        `for (int i=0; i<100; i--)
        {
        doSomething();
        }`

        Any ideas?
Copy to Clipboard Toggle word wrap
<p>
  My code doesn't work:
</p>

<pre>for (int i=0; i&lt;100; i--)
{
    doSomething();
}</pre>

<p>
  Any ideas?
</p>
Copy to Clipboard Toggle word wrap
Since most monospace-formatted text is either code, or involves special characters, inline monospace formatting always escapes. So, you can write:
This is a |<tag attribute="value"/>| example.
Copy to Clipboard Toggle word wrap
without escaping any of the characters inside the monospace bars. This also means that inline monospace text cannot be formatted in any other way.
Nach oben
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2025 Red Hat