Highlight Single-File Components of Vue.js Framework
npm install highlightjs-vuehighlight.js syntax definition for Vue.
Support for single-file Vue.js components.
The files with .vue extension allow to write html, javascript/typescript and styles in the same file.
highlight.js script package in your webpage or node app, load up this module and apply it to hljs.
html
`
If you're using webpack / rollup / browserify / node:
`javascript
var hljs = require("highlightjs");
var hljsDefineVue = require("highlightjs-vue");
hljsDefineVue(hljs);
hljs.initHighlightingOnLoad();
``