chore(*): add higlight
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Карпич Дмитрий Александрович 2025-05-28 15:22:44 +03:00
parent 4f964c7d2b
commit 72c84425d6

View File

@ -46,6 +46,11 @@ document.addEventListener('DOMContentLoaded', async function() {
const code = await response.text();
block.textContent = code;
// Обновляем подсветку после загрузки кода
if (Reveal.getPlugin('highlight')) {
Reveal.getPlugin('highlight').hljs.highlightBlock(block);
}
} catch (error) {
block.textContent = '⚠️ Error loading code: ' + error.message;
}