chore(*): add higlight
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4f964c7d2b
commit
72c84425d6
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user