{"id":5059,"date":"2026-08-30T22:30:08","date_gmt":"2026-08-30T20:30:08","guid":{"rendered":"https:\/\/www.claudia-klinger.de\/digidiary\/?page_id=5059"},"modified":"2026-08-30T22:38:28","modified_gmt":"2026-08-30T20:38:28","slug":"testseite-code-darstellung","status":"publish","type":"page","link":"https:\/\/www.claudia-klinger.de\/digidiary\/testseite-code-darstellung\/","title":{"rendered":"Testseite Code-Darstellung"},"content":{"rendered":"<p>1.<\/p>\n<p><strong>Classic Editor, visuelle Oberfl\u00e4che, Eingabe:<\/strong><\/p>\n<p>span.highlighter1 {<br \/>\nbackground-color: #ffeb3b !important;<br \/>\nbackground-image: linear-gradient(to right, #fff176 0%, #ffee58 100%) !important;<br \/>\npadding: 0.1em 0.3em;<br \/>\nborder-radius: 0.2em;<br \/>\nbox-decoration-break: clone;<br \/>\n-webkit-box-decoration-break: clone;<br \/>\n}<br \/>\n<strong><br \/>\n2. Classic Editor, Code-Ansicht, diesselbe Eingabe:<\/strong><\/p>\n<p>span.highlighter1 {<br \/>\nbackground-color: #ffeb3b !important;<br \/>\nbackground-image: linear-gradient(to right, #fff176 0%, #ffee58 100%) !important;<br \/>\npadding: 0.1em 0.3em;<br \/>\nborder-radius: 0.2em;<br \/>\nbox-decoration-break: clone;<br \/>\n-webkit-box-decoration-break: clone;<br \/>\n}<\/p>\n<p>Das wundert micht jetzt, ich dachte, das zeigt jetzt nicht an, weil es eben Code ist.<\/p>\n<p><strong>3. Dasselbe mit PHP-Code, visueller Editor:<\/strong><\/p>\n<p>&lt;?php phpinfo();?&gt;<\/p>\n<p><strong>4. Eingabe per Code-Ansicht:<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Aha, es wird nichts angezeigt. Im Quelltext sieht man jedoch den Code kursiv. Zumindest im Classic Editor wird CSS in der Code-Ansicht anders behandelt als PHP. Liegt vermutlich daran, dass CSS nur ein &#8222;beschreibender&#8220; Code ist, PHP aber wirklich ausf\u00fchrbar. <\/p>","protected":false},"excerpt":{"rendered":"<p>1. Classic Editor, visuelle Oberfl\u00e4che, Eingabe: span.highlighter1 { background-color: #ffeb3b !important; background-image: linear-gradient(to right, #fff176 0%, #ffee58 100%) !important; padding: 0.1em 0.3em; border-radius: 0.2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; } 2. Classic Editor, Code-Ansicht, diesselbe Eingabe: span.highlighter1 { background-color: #ffeb3b !important; background-image: linear-gradient(to right, #fff176 0%, #ffee58 100%) !important; padding: 0.1em 0.3em; border-radius: 0.2em; box-decoration-break: clone; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5059","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.claudia-klinger.de\/digidiary\/wp-json\/wp\/v2\/pages\/5059","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.claudia-klinger.de\/digidiary\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.claudia-klinger.de\/digidiary\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.claudia-klinger.de\/digidiary\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.claudia-klinger.de\/digidiary\/wp-json\/wp\/v2\/comments?post=5059"}],"version-history":[{"count":0,"href":"https:\/\/www.claudia-klinger.de\/digidiary\/wp-json\/wp\/v2\/pages\/5059\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.claudia-klinger.de\/digidiary\/wp-json\/wp\/v2\/media?parent=5059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}