Some time you may need a highlight a group of text or some usage snippets in your Vue project. There are many libraries doing the task.

Vue-code-Highlight

First up all install the component from npm using

npm i --save vue-code-highlight

import and use the component in Vue module

<template> ...     <vue-code-highlight    language="javascript">        <prismic-rich-text         var some-var=0;     />      </vue-code-highlight>  </template <Script> import { component as VueCodeHighlight } from "vue-code-highlight";  components:{ VueCodeHighlight } </script> 

Following Vuejs post deserve better read


This free site is ad-supported. Learn more