XBlock for Syntax Highlighting with Prism.js
LMS Final Output Examples:
This XBlock was tested & designed to work with Juniper release.
git clone [email protected]:appsembler/xblock-prismjs.git
- 2 themes for Syntax Highlighting via PrismJS:
- Light (Default)
- Dark (Tomorrow Night)
- Supported Languages:
- Bash
- C-like, CSS
- Go
- Java, Javascript, JSON
- Lua
- Markup
- Python
- Ruby
- Shell, SQL
- YAML
Prism XBlock will display as "Syntax Highlighter"
Edit the code, set a maximum height, select a language, select a theme
When you're happy with the changes, click the Publish button then View Live Version to view the changes in LMS