Answer the question
In order to leave comments, you need to log in
Why is there no highlighting of code examples in the article?
When I create a material, the highlighting of code examples is displayed as it should:
But after publishing, the highlighting is not displayed:
Answer the question
In order to leave comments, you need to log in
natoje-zlo suggested that there are no highlight styles in the template. Most likely it is. I solved the problem like this - downloaded prismjs . I put prism.css in the templates/my_template/css folder, and added the following lines to prism.js in templates/my_template/js and index.php of the template:
JHtml::_('stylesheet', 'prism.css', array('version' => 'auto', 'relative' => true));
JHtml::_('script', 'prism.js', array('version' => 'auto', 'relative' => true));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question