<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[14405] sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024: Breathe 2024: Ensure Prism (syntax highlighter) triggers on o2 content.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://meta.trac.wordpress.org/changeset/14405">14405</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://meta.trac.wordpress.org/changeset/14405","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>ryelle</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2025-03-25 21:10:43 +0000 (Tue, 25 Mar 2025)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Breathe 2024: Ensure Prism (syntax highlighter) triggers on o2 content.
This also updates the styles to match Developer Resources and support line numbers.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgbreathe2024assetsprismprismcss">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/assets/prism/prism.css</a></li>
<li><a href="#sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgbreathe2024functionsphp">sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/functions.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgbreathe2024assetsprismprismcss"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/assets/prism/prism.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/assets/prism/prism.css 2025-03-14 16:51:54 UTC (rev 14404)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/assets/prism/prism.css 2025-03-25 21:10:43 UTC (rev 14405)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1,59 +1,54 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /**
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- * VS theme by Andrew Lock (https://andrewlock.net)
- * Inspired by Visual Studio syntax coloring
- */
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+* Custom theme for developer.wordpress.org.
+* Forked from a11y-dark theme by ericwbailey, which was based on the okaidia theme.
+*
+* https://github.com/PrismJS/prism-themes/blob/master/themes/prism-a11y-dark.css
+* https://github.com/PrismJS/prism/blob/gh-pages/themes/prism-okaidia.css
+*/
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> code[class*="language-"],
</span><span class="cx" style="display: block; padding: 0 10px"> pre[class*="language-"] {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- color: #393A34;
- font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace;
- direction: ltr;
- text-align: left;
- white-space: pre;
- word-spacing: normal;
- word-break: normal;
- font-size: 0.95em;
- line-height: 1.2em;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ color: #101517;
+ background: none;
+ font-family: var(--wp--preset--font-family--monospace);
+ text-align: left;
+ white-space: pre;
+ word-spacing: normal;
+ word-break: normal;
+ word-wrap: normal;
+ line-height: 1.5;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- -moz-tab-size: 4;
- -o-tab-size: 4;
- tab-size: 4;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ -moz-tab-size: 4;
+ -o-tab-size: 4;
+ tab-size: 4;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- -webkit-hyphens: none;
- -moz-hyphens: none;
- -ms-hyphens: none;
- hyphens: none;
-}
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ -webkit-hyphens: none;
+ -moz-hyphens: none;
+ -ms-hyphens: none;
+ hyphens: none;
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
-code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
- background: #C1DEF1;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ transition: height 500ms;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
-code[class*="language-"]::selection, code[class*="language-"] ::selection {
- background: #C1DEF1;
-}
-
</del><span class="cx" style="display: block; padding: 0 10px"> /* Code blocks */
</span><span class="cx" style="display: block; padding: 0 10px"> pre[class*="language-"] {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- padding: 1em;
- margin: .5em 0;
- overflow: auto;
- border: 1px solid #dddddd;
- background-color: white;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ padding: 1em;
+ overflow: auto;
+ direction: ltr;
+ border: 1px solid #d9d9d9;
+ border-radius: 2px;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-pre[class*="language-"] > code {
- background-color: white;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+:not(pre) > code[class*="language-"],
+pre[class*="language-"] {
+ background: #fff;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> /* Inline code */
</span><span class="cx" style="display: block; padding: 0 10px"> :not(pre) > code[class*="language-"] {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- padding: .2em;
- padding-top: 1px; padding-bottom: 1px;
- background: #f8f8f8;
- border: 1px solid #dddddd;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ padding: 0.1em;
+ border-radius: 0.3em;
+ white-space: normal;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .token.comment,
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -60,102 +55,154 @@
</span><span class="cx" style="display: block; padding: 0 10px"> .token.prolog,
</span><span class="cx" style="display: block; padding: 0 10px"> .token.doctype,
</span><span class="cx" style="display: block; padding: 0 10px"> .token.cdata {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- color: #008000; font-style: italic;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ color: #007017;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.token.namespace {
- opacity: .7;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.token.punctuation {
+ color: #50575e;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.token.string {
- color: #A31515;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.token.property,
+.token.tag,
+.token.constant,
+.token.symbol,
+.token.deleted {
+ color: #043959;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.token.punctuation,
-.token.operator {
- color: #393A34; /* no highlight */
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.token.boolean,
+.token.number {
+ color: #101517;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.token.url,
-.token.symbol,
-.token.number,
-.token.boolean,
-.token.variable,
-.token.constant,
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.token.selector,
+.token.attr-name,
+.token.string,
+.token.char,
+.token.builtin,
</ins><span class="cx" style="display: block; padding: 0 10px"> .token.inserted {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- color: #36acaa;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ color: #2271b1;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.token.atrule,
-.token.keyword,
-.token.attr-value,
-.language-autohotkey .token.selector,
-.language-json .token.boolean,
-.language-json .token.number,
-code[class*="language-css"]{
- color: #0000ff;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.token.operator,
+.token.entity,
+.token.url,
+.language-css .token.string,
+.style .token.string,
+.token.variable {
+ color: #a85f00;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .token.function {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- color: #393A34;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ color: #b8236d;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.token.deleted,
-.language-autohotkey .token.tag {
- color: #9a050f;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+.token.keyword {
+ color: #135e96;
+ font-weight: 600;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.token.selector,
-.language-autohotkey .token.keyword {
- color: #00009f;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.token.atrule,
+.token.attr-value,
+.token.function-definition {
+ color: #101517;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .token.important,
</span><span class="cx" style="display: block; padding: 0 10px"> .token.bold {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- font-weight: bold;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ font-weight: 700;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> .token.italic {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- font-style: italic;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ font-style: italic;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.token.class-name,
-.language-json .token.property {
- color: #2B91AF;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.token.entity {
+ cursor: help;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.token.tag,
-.token.selector {
- color: #800000;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+@media screen and (-ms-high-contrast: active) {
+ code[class*="language-"],
+ pre[class*="language-"] {
+ color: windowText;
+ background: window;
+ }
+
+ :not(pre) > code[class*="language-"],
+ pre[class*="language-"] {
+ background: window;
+ }
+
+ .token.important {
+ background: highlight;
+ color: window;
+ font-weight: 700;
+ }
+
+ .token.atrule,
+ .token.attr-value,
+ .token.function,
+ .token.keyword,
+ .token.operator,
+ .token.selector {
+ font-weight: 700;
+ }
+
+ .token.attr-value,
+ .token.comment,
+ .token.doctype,
+ .token.function,
+ .token.keyword,
+ .token.operator,
+ .token.property,
+ .token.string {
+ color: highlight;
+ }
+
+ .token.attr-value,
+ .token.url {
+ font-weight: 700;
+ }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.token.attr-name,
-.token.property,
-.token.regex,
-.token.entity {
- color: #ff0000;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/* Line Numbers */
+pre.line-numbers {
+ position: relative;
+ padding-left: 4.5rem;
+ counter-reset: linenumber;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.token.directive.tag .tag {
- background: #ffff00;
- color: #393A34;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+pre.line-numbers > code {
+ position: relative;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-/* overrides color-values for the Line Numbers plugin
- * http://prismjs.com/plugins/line-numbers/
- */
</del><span class="cx" style="display: block; padding: 0 10px"> .line-numbers .line-numbers-rows {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- border-right-color: #a5a5a5;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ position: absolute;
+ pointer-events: none;
+ top: 0;
+ font-size: 100%;
+ left: -4.5rem;
+ width: 4rem; /* works for line-numbers below 10000 lines */
+ letter-spacing: -1px;
+ border-right: 0;
+
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.line-numbers-rows > span:before {
- color: #2B91AF;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.line-numbers-rows > span {
+ pointer-events: none;
+ display: block;
+ counter-increment: linenumber;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-/* overrides color-values for the Line Highlight plugin
-* http://prismjs.com/plugins/line-highlight/
-*/
-.line-highlight {
- background: rgba(193, 222, 241, 0.2);
- background: -webkit-linear-gradient(left, rgba(193, 222, 241, 0.2) 70%, rgba(221, 222, 241, 0));
- background: linear-gradient(to right, rgba(193, 222, 241, 0.2) 70%, rgba(221, 222, 241, 0));
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.line-numbers-rows > span::before {
+ content: counter(linenumber);
+ color: #5c6370;
+ display: block;
+ padding-right: 0.8em;
+ text-align: right;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="sitestrunkwordpressorgpublic_htmlwpcontentthemespubwporgbreathe2024functionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/functions.php 2025-03-14 16:51:54 UTC (rev 14404)
+++ sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/functions.php 2025-03-25 21:10:43 UTC (rev 14405)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -735,3 +735,25 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return $block_content;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> add_filter( 'render_block_core/site-title', __NAMESPACE__ . '\modify_site_title_block', 10, 2 );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+/**
+ * Inject a script to trigger Prism (syntax highlighter) after o2 content is rendered.
+ */
+add_action(
+ 'wp_footer',
+ function () {
+ wp_add_inline_script(
+ 'mkaz-code-syntax-prism-js',
+ 'jQuery( document ).on(
+ "ready.o2",
+ function () {
+ setTimeout( () => Prism.highlightAll(), 10 );
+ console.log( "test" );
+ }
+ );',
+ 'after'
+ );
+ }
+);
+// Ensure assets are loaded, regardless of what's there on page load.
+add_filter( 'mkaz_code_syntax_force_loading', '__return_true' );
</ins></span></pre>
</div>
</div>
</body>
</html>