PluginPrismPrismjs
Add code highlightning from Prismjs.com by including CSS and Javascript.
Visit prismjs.com for more info.
widget_include
Widget setup
type: widget
data:
plugin: prism/prismjs
method: include
Including CSS and Javascript in html/head section.
YML
-
type: widget
data:
plugin: 'prism/prismjs'
method: include
An element should be created like this. Use language-yaml, language-javascript or language-php.
YML
-
type: pre
innerHTML:
-
type: code
attribute:
class: 'language-yaml'
innerHTML: |
test: 3323
test2:
- sfdsf
- 3233
If included in ajax run this javascript.
Javascript
Prism.highlightAll();
page_testprism
Dependencies
This plugin has no dependencies.
Usage
This plugin are not in use of other plugins.
Request a plugin
If you need a plugin to your website, one could make a request to a developer.