# Quickstart

## Install
```
npm install --save vue-syntax-highlight
```


## Use setup
#### In your main JavaScript file (eg. main.js):
```
// Import Vue and vue-syntax-highlight
import Vue from 'vue'
import HighLight from 'vue-syntax-highlight'
 
// Tell Vue.js to use vue-syntax-highlight
Vue.use(HighLight)
```


#### In your template, in order to highlight javascript code:
```
<highlight lang='javascript'><template v-slot>需要高亮的代码</template></highlight>
```


# About
    
   Author: zhangtong
   
   Email: zhangtong@tocersoft.com
   
   License: MIT
   
# Changelog

* v0.1.0
   
  Published a Vue Component Based on Highlightjs Encapsulation, Providing Syntax Highlight

