1.1.0 • Published 7 years ago

vue-snippet v1.1.0

Weekly downloads
195
License
MIT
Repository
github
Last release
7 years ago

vue-snippet

Insert text snippet with highlighting and Prismjs

Installation

$ npm i vue-snippet --save
import 'vue-snippet/dist/vue-snippet.css';
import VueSnippet from 'vue-snippet';
Vue.component('snippet', VueSnippet);
<snippet lang="css">
.verde { color:green }
</snippet>

<snippet lang="javascript" :code="code"></snippet>

Avaible props

PropTypeDefaultDescription
langStringLanguage of programming (example: javascript, php)
codeStringText with the code

Languages supported

http://prismjs.com/#languages-list

Contributing

  1. Fork it ( https://github.com/mrignacio1231/vue-snippet/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors