1export function highlightAll() { 2 return new Promise((resolve, reject) => { 3 if (typeof Prism !== 'undefined') { 4 Prism.highlightAll(); 5 resolve(); 6 } else { 7 // Wait for Prism to be available 8 const checkPrism = setInterval(() => { 9 if (typeof Prism !== 'undefined') { 10 clearInterval(checkPrism); 11 Prism.highlightAll(); 12 resolve(); 13 } 14 }, 100); 15 16 // Timeout after 5 seconds 17 setTimeout(() => { 18 clearInterval(checkPrism); 19 reject('Prism not loaded after 5 seconds'); 20 }, 5000); 21 } 22 }); 23}
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.