Skip to content

karthikrajannadurai/runAsJs-prismJs-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

runAsJs-PrismJS-Plugin

This is a prismjs plugin that runs the javascript inside the code block and displays the output.

Demo

Video:

runAsJs-prismJs-plugin.mp4

Working Example:

https://karthikeyan-cool.github.io/runAsJs-prismJs-plugin/demo/

How To Use

Styling

  • 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.

How to build

  • To build from source, use the following commands
npm install
npm run build

How to install

NPM:

npm i runasjs-prismjs-plugin

YARN:

yarn add runasjs-prismjs-plugin

CDN:

https://cdn.jsdelivr.net/npm/runasjs-prismjs-plugin@1.0.0
https://unpkg.com/runasjs-prismjs-plugin@1.0.0/dist/runAsJs/js/runAsJs.min.js

for issues see issues section;