@factor/plugin-highlight-code

Add a syntax highlighting component to your Factor app.

Usage no npm install needed!

<script type="module">
  import factorPluginHighlightCode from 'https://cdn.skypack.dev/@factor/plugin-highlight-code';
</script>

README

Factor Syntax Highlighter

Overview

This plugin adds a syntax highlighting component for content. All you need to do is import the component:

// vue
import HighlightCode from "@factor/plugin-highlight-code"

export default {
  components: { HighlightCode },
}

and then wrap your HTML content with it:

<HighlightCode>content</HighlightCode>

Installation

Just add to your application dependencies:

npm add  @factor/plugin-highlight-code