Für normale Inliner <code>
verwenden:
<code>...</code>
und für jeden einzelnen Ort, an dem blockierte <code>
erforderlich ist, verwenden Sie
<code style="display:block; white-space:pre-wrap">...</code>
Alternativ können Sie auch eine <codenza>
Etikett für Pausenfutterblock <code>
(kein Unterricht)
<script>
</script>
<style>
codenza, code {} /* noop mnemonic aide that codenza mimes code tag */
codenza {display:block;white-space:pre-wrap}
</style>`
Prüfung: (Anm.: Das Folgende ist ein Beispiel für die Verwendung eines data:
URI-Protokoll/Schema, daher ist das %0A
nl-Format-Codes sind Wesentlich beim Ausschneiden und Einfügen in die URL-Leiste zu Testzwecken beibehalten - also view-source:
( ctrl - U ) sieht gut aus vorgehen jede Zeile unten mit %0A
)
data:text/html;charset=utf-8,<html >
<script>document.write(window.navigator.userAgent)</script>
<script></script>
<style>
codenza, code {} /* noop mnemonic aide that codenza mimes code tag */
codenza {display:block;white-space:pre-wrap}
</style>
<p>First using the usual <code> tag
<code>
%0A function x(arghhh){
%0A return "a very long line of text that will extend the code beyond the boundaries of the margins, guaranteed for the most part, well maybe without you as a warrantee (except in abnormally conditioned perverse environs in which case a warranty is useless)"
%0A }
</code>
and then
<p>with the tag blocked using pre-wrapped lines
<code style=display:block;white-space:pre-wrap>
%0A function x(arghhh){
%0A return "a very long line of text that will extend the code beyond the boundaries of the margins, guaranteed for the most part, well maybe without you as a warrantee (except in abnormally conditioned perverse environs in which case a warranty is useless)"
%0A }
</code>
<br>using an ersatz tag
<codenza>
%0A function x(arghhh){
%0A return "a very long line of text that will extend the code beyond the boundaries of the margins, guaranteed for the most part, well maybe without you as a warrantee (except in abnormally conditioned perverse environs in which case a warranty is useless)"
%0A }
</codenza>
</html>