saber-plugin-prismjs
v0.2.4
Published
## How to use
Downloads
8
Readme
saber-plugin-prismjs
How to use
Install this package:
yarn add prismjs saber-plugin-prismjs saber-highlight-css
Note that saber-highlight-css is required for line highlighting to display properly.
Use it in your saber-config.yml
:
plugins:
- resolve: saber-plugin-prismjs
Include CSS
In your saber-browser.js
:
import 'prismjs/themes/prism.css'
Optional: Include saber-highlight-css
for line highlighting styles:
yarn add saber-highlight-css
// saber-browser.js
import 'prismjs/themes/prism.css'
import 'saber-highlight-css/default.css'
License
MIT © EGOIST