Skip to content

ThePacielloGroup/adapt-highlightjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HighlightJS

An extension to load HighlightJS into Adapt.

Installation

  • In this extension the default configuration for MathJax is as follows:
"_hljs": {
	"_src": "//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js"
}

Usage

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>

About

Adapt extension to allow code highlighting in courses

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published