Closed Octavector closed 6 years ago
npm install --save highlight.js
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/styles/default.min.css">
https://www.metachris.com/2017/02/vuejs-syntax-highlighting-with-highlightjs/
@vegenera Thank you!
Following the process outlined:
Installed vue-highlightjs:
Imported in
main.js
:Used in component callled by vue-router:
My output is without styling. vue-highlightjs appears to be doing its job as the output has the correct class names:
What method do I use to apply the styles? Should they have been added automatically or do I need to add them in the component or add them with Webpack?