An extension to load HighlightJS into Adapt.
- In this extension the default configuration for MathJax is as follows:
"_hljs": {
"_src": "//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js"
}
To apply highlighting to code snippets, mark them up with (adjust the classname depending on the snippet's language (e.g. language-css
, language-html
, etc.). Note that adding code snippets in the Authoring tool requires either editing the html source directly or adding the codeSnippet CKEditor plugin in the AAT build.
<pre>
<code class="language-javascript">
// your code goes here
</code>
</pre>