Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 528 Bytes

README.md

File metadata and controls

37 lines (30 loc) · 528 Bytes

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