This is a prismjs plugin that runs the javascript inside the code block and displays the output.
runAsJs-prismJs-plugin.mp4
https://karthikeyan-cool.github.io/runAsJs-prismJs-plugin/demo/
- The build files are present in dist folder.
- There will be two folders one is prismjs build and runAsJs build files.
- For runAsJs plugin to work, you need have the following:
- customTheme.css file controls the hover state color of toolbar and left and right margin of the toolbar buttons.
- runAsJs.css file controls the output section theme.
- To build from source, use the following commands
npm install
npm run build
npm i runasjs-prismjs-plugin
yarn add runasjs-prismjs-plugin
https://cdn.jsdelivr.net/npm/[email protected]
https://unpkg.com/[email protected]/dist/runAsJs/js/runAsJs.min.js
for issues see issues section;