1.0.1 • Published 4 years ago

fmv-highlight v1.0.1

Weekly downloads
78
License
UNLICENSED
Repository
github
Last release
4 years ago

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
      `
    }
  }
}