0.1.8 • Published 5 years ago

vue-syntax-highlight v0.1.8

Weekly downloads
40
License
-
Repository
github
Last release
5 years ago

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.0Published a Vue Component Based on Highlightjs Encapsulation, Providing Syntax Highlight
0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago