WebTolk Joomla Extensions
69 Extensions
9 Categories
271 Versions released
236594 Downloads
Code highlighting plugin using Highlight.js. Works only with Joomla 4.
The package includes 2 plugins: content
and editors-xtd
groups, don't forget to include them.
Highlight.js version 11.7.0 supports 197 programming languages and 248 display styles. For more information, see the plugin settings.
Demo
foreach ($matches as $match){
$lang = $match[1];
$wa->registerAndUseScript('highlight.js.'.$lang, 'media/plg_content_wthighlightjs/js/languages/'.$lang.'.min.js');
}
$wa->addInlineScript('hljs.highlightAll();');