1document.addEventListener('DOMContentLoaded', () => { 2 if (!window.Prism) { 3 return; 4 } 5 6 document.querySelectorAll('.tutor-container pre').forEach((el) => { 7 const fallback = 'javascript'; 8 9 const lang = 10 el.className 11 ?.trim() 12 .replace('language-', '') || fallback; 13 14 const grammar = Prism.languages[lang] || Prism.languages[fallback]; 15 16 el.innerHTML = Prism.highlight( 17 el.textContent, 18 grammar, 19 Prism.languages[lang] ? lang : fallback 20 ); 21 }); 22});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.