fmv-highlight
Syntax Highlight Vue Component using Highlight.js & js-beautify
1,388
| Install | |
|---|---|
npm install fmv-highlight |
|
| Latest Version: | 1.0.1 |
| Vue: | 2 |
| License: | Proprietary |
| Last Updated: | Sep 22, 2020 |
| Links: | GitHub · npm |
Maintainer: lazabogdan
fmv-highlight
Syntax Highlight Vue Component using Highlight.js & js-beautify
Installation
npm install fmv-highlight
Usage
Template
<fmv-highlight :code="code" />
Script
import VueHighlightJS from 'vue-highlightjs'
Vue.use(VueHighlightJS)
import 'fmv-highlight/dist/fmv-highlight.css'
import {FmvHighlight} from 'fmv-highlight'
export default {
components: {
FmvHighlight
},
data() {
return {
code: `
// code to Syntax Highlight
`
}
}
}
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.1 | ^2.6.10 | Proprietary | |
| 1.0.0 | ^2.6.10 | Proprietary |