Hi, I would like to show a code snippet on the landing page.
What do I need to call to initialise the plugin?
It's used on your documentation pages, so I assume it's available.
Thanks
Jason
Hi,
You can include Prism.js plugin
1) Include assets/plugins/custom/prismjs/prismjs.bundle.css
CSS file
2) Include assets/plugins/custom/prismjs/prismjs.bundle.js
JS file
3) Use the below function to print the code in HTML https://gist.github.com/KeenthemesHub/40c0d8b7949036c6174cb8aec04be740
You can port this PHP function to your server-side language.
Regards.