# vue-highlightjs [Vue.js](https://vuejs.org/) syntax highlighting made easy, using [highlight.js](https://highlightjs.org/). [](https://travis-ci.org/metachris/vue-highlightjs) ## Quickstart ### Installation npm install --save vue-highlightjs ### Using vue-highlightjs In your main JavaScript file (eg. `main.js`): ```javascript // Import Vue and vue-highlgihtjs import Vue from 'vue' import VueHighlightJS from 'vue-highlightjs' // Tell Vue.js to use vue-highlightjs Vue.use(VueHighlightJS) ``` In your template, in order to highlight javascript code: ```html
const s = new Date().toString()
```
---
* You can see a live example here: https://www.python-boilerplate.com/
* Fiddle with it: https://jsfiddle.net/metachris/1vz9oobc/
* See also this blog post for more information: https://www.metachris.com/2017/02/vuejs-syntax-highlighting-with-highlightjs/
## Contributing
Any sort of contributions and feedback is much appreciated. Just
leave an issue or pull-request!
This project uses the [AirBnB code style](https://github.com/airbnb/javascript).
Please run `npm run lint` and `npm run test` before you submit a pull request! <3
## About
Author: Chris Hager