Syntax Highlight

Usage

<template> <fmv-highlight :code="code" /> </template> <script> import 'fmv-highlight/dist/fmv-highlight.css' import { FmvHighlight } from 'fmv-highlight' export default { components: { FmvHighlight }, data() { return { code: ` // code to Syntax Highlight ` } } } </script>

<fmv-highlight> Reference

<fmv-highlight> Properties

Property
Type
Default Value
codeString
langStringhtml
code-classString or Array or Objectbg-dark