Darstellung von Code im Wiki
bearbeitet von Matthias ApselHallo Orlok,
Nachdem es schon beinahe einmal heftigen Streit wegen der Fließtext-Codes gegeben hat, …
Wie machen es die anderen?
W3C
: ` { font-family: monospace; font-size: 1em; }`{: .language-css}
MDN
: ` { font-family: …,monospace; }`{: .language-css}
WebPlatform
: ` { font-family: …,monospace; font-weight: bold;}`{: .language-css}
stackoverflow
: ` {background-color: #eee; font-family: …,sans-serif; font-size: 13px ; padding: 1px 5px; }`{: .language-css}
MSDN
: keine Hervorhebung (Monospace wegen default)
JQuery
: ` { font-family: "…,monospace; background-color: rgba(0, 0, 0, 0.1); border-radius: 3px; padding: 0 3px; }`{: .language-css}
W3Schools
: gar nicht (sie verwenden strong-Elemente)
SELFHTML-Forum
: ` { font-family: …,monospace; color: #0000c0; }`{: .language-css}
: Beispieltext, `Beispielcode`
Bis demnächst
Matthias
--
Das Geheimnis des Könnens liegt im Wollen. (Giuseppe Mazzini)