vue-snippet
v1.1.0
Published
Insert text snippet with highlighting and Prismjs
Downloads
58
Maintainers
Readme
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
| Prop | Type | Default | Description |-------------|---------|---------|-------------------------------------------------------------| | lang | String | | Language of programming (example: javascript, php) | code | String | | Text with the code
Languages supported
http://prismjs.com/#languages-list
Contributing
- Fork it ( https://github.com/mrignacio1231/vue-snippet/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- mrignacio1231 Ignacio Del Nardo - creator, maintainer