chillerlan-QRCode-Output-CssColorModuleValueTrait.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/template.js"></script>
  22. <script src="js/search.js"></script>
  23. <script defer src="js/searchIndex.js"></script>
  24. </head>
  25. <body id="top">
  26. <header class="phpdocumentor-header phpdocumentor-section">
  27. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  28. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  29. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  30. <i class="fas fa-bars"></i>
  31. </label>
  32. <section data-search-form class="phpdocumentor-search">
  33. <label>
  34. <span class="visually-hidden">Search for</span>
  35. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  36. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  37. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  38. </svg>
  39. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  40. </label>
  41. </section>
  42. <nav class="phpdocumentor-topnav">
  43. <ul class="phpdocumentor-topnav__menu">
  44. <li class="phpdocumentor-topnav__menu-item -menu">
  45. <a href="https://php-qrcode.readthedocs.io">
  46. <span>
  47. User Manual
  48. </span>
  49. </a>
  50. </li>
  51. <li class="phpdocumentor-topnav__menu-item -social">
  52. <a href="https://github.com/chillerlan/php-qrcode">
  53. <span>
  54. <i class="fab fa-github"></i>
  55. </span>
  56. </a>
  57. </li>
  58. <li class="phpdocumentor-topnav__menu-item -social">
  59. <a href="https://github.com/chillerlan/php-qrcode/discussions">
  60. <span>
  61. <i class="fas fa-envelope-open-text"></i>
  62. </span>
  63. </a>
  64. </li>
  65. </ul>
  66. </nav>
  67. </header>
  68. <main class="phpdocumentor">
  69. <div class="phpdocumentor-section">
  70. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  71. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  72. Menu
  73. </label>
  74. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  75. <section class="phpdocumentor-sidebar__category -namespaces">
  76. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  77. <h4 class="phpdocumentor-sidebar__root-namespace">
  78. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  79. </h4>
  80. <ul class="phpdocumentor-list">
  81. <li>
  82. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  83. </li>
  84. <li>
  85. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  86. </li>
  87. </ul>
  88. </section>
  89. <section class="phpdocumentor-sidebar__category -packages">
  90. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  91. <h4 class="phpdocumentor-sidebar__root-namespace">
  92. <a href="packages/Application.html" class="">Application</a>
  93. </h4>
  94. </section>
  95. <section class="phpdocumentor-sidebar__category -reports">
  96. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  97. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  98. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  99. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  100. </section>
  101. <section class="phpdocumentor-sidebar__category -indices">
  102. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  103. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  104. </section>
  105. </aside>
  106. <div class="phpdocumentor-column -nine phpdocumentor-content">
  107. <section>
  108. <ul class="phpdocumentor-breadcrumbs">
  109. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  110. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  111. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-output.html">Output</a></li>
  112. </ul>
  113. <article class="phpdocumentor-element -trait">
  114. <h2 class="phpdocumentor-content__title">
  115. CssColorModuleValueTrait
  116. </h2>
  117. <aside class="phpdocumentor-element-found-in">
  118. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/CssColorModuleValueTrait.php"><a href="files/src-output-csscolormodulevaluetrait.html"><abbr title="src/Output/CssColorModuleValueTrait.php">CssColorModuleValueTrait.php</abbr></a></abbr>
  119. :
  120. <span class="phpdocumentor-element-found-in__line">19</span>
  121. </aside>
  122. <p class="phpdocumentor-summary">Module value checks for output classes that use CSS colors</p>
  123. <h3 id="toc">
  124. Table of Contents
  125. <a href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  126. </h3>
  127. <h4 id="toc-methods">
  128. Methods
  129. <a href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  130. </h4>
  131. <dl class="phpdocumentor-table-of-contents">
  132. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  133. <a class="" href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#method_moduleValueIsValid">moduleValueIsValid()</a>
  134. <span>
  135. &nbsp;: bool </span>
  136. </dt>
  137. <dd>note: we&#039;re not necessarily validating the several values, just checking the general syntax
  138. note: css4 colors are not included</dd>
  139. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  140. <a class="" href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#method_getDefaultModuleValue">getDefaultModuleValue()</a>
  141. <span>
  142. &nbsp;: string </span>
  143. </dt>
  144. <dd>implements \chillerlan\QRCode\Output\QROutputAbstract::getDefaultModuleValue()</dd>
  145. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  146. <a class="" href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#method_prepareModuleValue">prepareModuleValue()</a>
  147. <span>
  148. &nbsp;: string </span>
  149. </dt>
  150. <dd>implements \chillerlan\QRCode\Output\QROutputAbstract::prepareModuleValue()</dd>
  151. </dl>
  152. <section class="phpdocumentor-methods">
  153. <h3 class="phpdocumentor-elements__header" id="methods">
  154. Methods
  155. <a href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  156. </h3>
  157. <article
  158. class="phpdocumentor-element
  159. -method
  160. -public
  161. -static "
  162. >
  163. <h4 class="phpdocumentor-element__name" id="method_moduleValueIsValid">
  164. moduleValueIsValid()
  165. <a href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#method_moduleValueIsValid" class="headerlink"><i class="fas fa-link"></i></a>
  166. </h4>
  167. <aside class="phpdocumentor-element-found-in">
  168. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/CssColorModuleValueTrait.php"><a href="files/src-output-csscolormodulevaluetrait.html"><abbr title="src/Output/CssColorModuleValueTrait.php">CssColorModuleValueTrait.php</abbr></a></abbr>
  169. :
  170. <span class="phpdocumentor-element-found-in__line">33</span>
  171. </aside>
  172. <p class="phpdocumentor-summary">note: we&#039;re not necessarily validating the several values, just checking the general syntax
  173. note: css4 colors are not included</p>
  174. <code class="phpdocumentor-code phpdocumentor-signature ">
  175. <span class="phpdocumentor-signature__visibility">public</span>
  176. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">moduleValueIsValid</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  177. <div class="phpdocumentor-label-line">
  178. </div>
  179. <section class="phpdocumentor-description"><p>implements \chillerlan\QRCode\Output\QROutputInterface::moduleValueIsValid()</p>
  180. </section>
  181. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  182. <dl class="phpdocumentor-argument-list">
  183. <dt class="phpdocumentor-argument-list__entry">
  184. <span class="phpdocumentor-signature__argument__name">$value</span>
  185. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  186. </dt>
  187. <dd class="phpdocumentor-argument-list__definition">
  188. </dd>
  189. </dl>
  190. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  191. Tags
  192. <a href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#method_moduleValueIsValid#tags" class="headerlink"><i class="fas fa-link"></i></a>
  193. </h5>
  194. <dl class="phpdocumentor-tag-list">
  195. <dt class="phpdocumentor-tag-list__entry">
  196. <span class="phpdocumentor-tag__name">todo:</span>
  197. </dt>
  198. <dd class="phpdocumentor-tag-list__definition">
  199. <section class="phpdocumentor-description"><p>XSS proof</p>
  200. </section>
  201. </dd>
  202. <dt class="phpdocumentor-tag-list__entry">
  203. <span class="phpdocumentor-tag__name">see</span>
  204. </dt>
  205. <dd class="phpdocumentor-tag-list__definition">
  206. <span class="phpdocumentor-tag-link"><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value">https://developer.mozilla.org/en-US/docs/Web/CSS/color_value</a></span>
  207. </dd>
  208. </dl>
  209. <section>
  210. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  211. <span class="phpdocumentor-signature__response_type">bool</span>
  212. </section>
  213. </article>
  214. <article
  215. class="phpdocumentor-element
  216. -method
  217. -protected
  218. "
  219. >
  220. <h4 class="phpdocumentor-element__name" id="method_getDefaultModuleValue">
  221. getDefaultModuleValue()
  222. <a href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#method_getDefaultModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  223. </h4>
  224. <aside class="phpdocumentor-element-found-in">
  225. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/CssColorModuleValueTrait.php"><a href="files/src-output-csscolormodulevaluetrait.html"><abbr title="src/Output/CssColorModuleValueTrait.php">CssColorModuleValueTrait.php</abbr></a></abbr>
  226. :
  227. <span class="phpdocumentor-element-found-in__line">73</span>
  228. </aside>
  229. <p class="phpdocumentor-summary">implements \chillerlan\QRCode\Output\QROutputAbstract::getDefaultModuleValue()</p>
  230. <code class="phpdocumentor-code phpdocumentor-signature ">
  231. <span class="phpdocumentor-signature__visibility">protected</span>
  232. <span class="phpdocumentor-signature__name">getDefaultModuleValue</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$isDark</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  233. <div class="phpdocumentor-label-line">
  234. </div>
  235. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  236. <dl class="phpdocumentor-argument-list">
  237. <dt class="phpdocumentor-argument-list__entry">
  238. <span class="phpdocumentor-signature__argument__name">$isDark</span>
  239. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  240. </dt>
  241. <dd class="phpdocumentor-argument-list__definition">
  242. </dd>
  243. </dl>
  244. <section>
  245. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  246. <span class="phpdocumentor-signature__response_type">string</span>
  247. </section>
  248. </article>
  249. <article
  250. class="phpdocumentor-element
  251. -method
  252. -protected
  253. "
  254. >
  255. <h4 class="phpdocumentor-element__name" id="method_prepareModuleValue">
  256. prepareModuleValue()
  257. <a href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#method_prepareModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  258. </h4>
  259. <aside class="phpdocumentor-element-found-in">
  260. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/CssColorModuleValueTrait.php"><a href="files/src-output-csscolormodulevaluetrait.html"><abbr title="src/Output/CssColorModuleValueTrait.php">CssColorModuleValueTrait.php</abbr></a></abbr>
  261. :
  262. <span class="phpdocumentor-element-found-in__line">66</span>
  263. </aside>
  264. <p class="phpdocumentor-summary">implements \chillerlan\QRCode\Output\QROutputAbstract::prepareModuleValue()</p>
  265. <code class="phpdocumentor-code phpdocumentor-signature ">
  266. <span class="phpdocumentor-signature__visibility">protected</span>
  267. <span class="phpdocumentor-signature__name">prepareModuleValue</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  268. <div class="phpdocumentor-label-line">
  269. </div>
  270. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  271. <dl class="phpdocumentor-argument-list">
  272. <dt class="phpdocumentor-argument-list__entry">
  273. <span class="phpdocumentor-signature__argument__name">$value</span>
  274. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  275. </dt>
  276. <dd class="phpdocumentor-argument-list__definition">
  277. </dd>
  278. </dl>
  279. <section>
  280. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  281. <span class="phpdocumentor-signature__response_type">string</span>
  282. </section>
  283. </article>
  284. </section>
  285. <div class="phpdocumentor-modal" id="source-view">
  286. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  287. <div class="phpdocumentor-modal-container">
  288. <div class="phpdocumentor-modal-content">
  289. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/src/Output/CssColorModuleValueTrait.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  290. </div>
  291. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  292. </div>
  293. </div>
  294. <script type="text/javascript">
  295. (function () {
  296. function loadExternalCodeSnippet(el, url, line) {
  297. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  298. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  299. const language = 'php';
  300. const code = document.createElement('code');
  301. code.className = 'language-' + language;
  302. pre.textContent = '';
  303. pre.setAttribute('data-line', line)
  304. code.textContent = 'Loading…';
  305. pre.appendChild(code);
  306. var xhr = new XMLHttpRequest();
  307. xhr.open('GET', src, true);
  308. xhr.onreadystatechange = function () {
  309. if (xhr.readyState !== 4) {
  310. return;
  311. }
  312. if (xhr.status < 400 && xhr.responseText) {
  313. code.textContent = xhr.responseText;
  314. Prism.highlightElement(code);
  315. return;
  316. }
  317. if (xhr.status === 404) {
  318. code.textContent = '✖ Error: File could not be found';
  319. return;
  320. }
  321. if (xhr.status >= 400) {
  322. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  323. return;
  324. }
  325. code.textContent = '✖ Error: An unknown error occurred';
  326. };
  327. xhr.send(null);
  328. });
  329. }
  330. const modalButtons = document.querySelectorAll("[data-modal]");
  331. const openedAsLocalFile = window.location.protocol === 'file:';
  332. if (modalButtons.length > 0 && openedAsLocalFile) {
  333. console.warn(
  334. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  335. 'browsers block XHR requests when a page is opened this way'
  336. );
  337. }
  338. modalButtons.forEach(function (trigger) {
  339. if (openedAsLocalFile) {
  340. trigger.setAttribute("hidden", "hidden");
  341. }
  342. trigger.addEventListener("click", function (event) {
  343. event.preventDefault();
  344. const modal = document.getElementById(trigger.dataset.modal);
  345. if (!modal) {
  346. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  347. return;
  348. }
  349. modal.classList.add("phpdocumentor-modal__open");
  350. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  351. const exits = modal.querySelectorAll("[data-exit-button]");
  352. exits.forEach(function (exit) {
  353. exit.addEventListener("click", function (event) {
  354. event.preventDefault();
  355. modal.classList.remove("phpdocumentor-modal__open");
  356. });
  357. });
  358. });
  359. });
  360. })();
  361. </script>
  362. </article>
  363. </section>
  364. <section class="phpdocumentor-on-this-page__sidebar">
  365. <section class="phpdocumentor-on-this-page__content">
  366. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  367. <ul class="phpdocumentor-list -clean">
  368. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  369. <li>
  370. <ul class="phpdocumentor-list -clean">
  371. <li><a href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#toc-methods">Methods</a></li>
  372. </ul>
  373. </li>
  374. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  375. <li>
  376. <ul class="phpdocumentor-list -clean">
  377. <li class=""><a href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#method_moduleValueIsValid">moduleValueIsValid()</a></li>
  378. <li class=""><a href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#method_getDefaultModuleValue">getDefaultModuleValue()</a></li>
  379. <li class=""><a href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#method_prepareModuleValue">prepareModuleValue()</a></li>
  380. </ul>
  381. </li>
  382. </ul>
  383. </section>
  384. </section>
  385. </div>
  386. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  387. <section class="phpdocumentor-search-results__dialog">
  388. <header class="phpdocumentor-search-results__header">
  389. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  390. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  391. </header>
  392. <section class="phpdocumentor-search-results__body">
  393. <ul class="phpdocumentor-search-results__entries"></ul>
  394. </section>
  395. </section>
  396. </section>
  397. </div>
  398. <a href="classes/chillerlan-QRCode-Output-CssColorModuleValueTrait.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  399. </main>
  400. <script>
  401. cssVars({});
  402. </script>
  403. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  404. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  405. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  406. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  407. </body>
  408. </html>