vue-prism-component
highlight code using prism.js and vue component.
Install
Usage
First you need to load Prism
somewhere in your app:
OR:
Then In SFC:
Or In JSX:
For inline rendering, pass the inline
prop:
You can also set the code using a prop:
Related
- vue-highlight-component: highlight code using highlight.js and vue component.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
vue-prism-component © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).