vue component for prism.js
npm install vue-prism-component   
``bash`
yarn add vue-prism-component
First you need to load Prism somewhere in your app:
`js`
// yarn add prismjs
import 'prismjs'
import 'prismjs/themes/prism.css'
OR:
`html`
Then In SFC:
`vue
`
Or In JSX:
`js
}
`For inline rendering, pass the
inline prop:`js
alert("foo");
`You can also set the code using a prop:
`js
import 'prismjs/components/prism-rust'
`Related
- vue-highlight-component: highlight code using highlight.js and vue component.
Contributing
1. Fork it!
2. Create your feature branch:
git checkout -b my-new-feature
3. Commit your changes: git commit -am 'Add some feature'
4. Push to the branch: git push origin my-new-feature`vue-prism-component © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).
> egoistian.com · GitHub @egoist · Twitter @rem_rin_rin