Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrignacio1231/vue-snippet
Insert text snippet with highlighting and Prismjs
https://github.com/mrignacio1231/vue-snippet
javascript syntax-highlighting vuejs2
Last synced: about 2 months ago
JSON representation
Insert text snippet with highlighting and Prismjs
- Host: GitHub
- URL: https://github.com/mrignacio1231/vue-snippet
- Owner: mrignacio1231
- License: mit
- Created: 2017-05-20T03:53:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-22T15:44:11.000Z (over 7 years ago)
- Last Synced: 2024-11-08T19:19:33.502Z (2 months ago)
- Topics: javascript, syntax-highlighting, vuejs2
- Language: JavaScript
- Size: 310 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-snippet
> Insert text snippet with highlighting and Prismjs
### Installation
```bash
$ npm i vue-snippet --save
```
```javascript
import 'vue-snippet/dist/vue-snippet.css';
import VueSnippet from 'vue-snippet';
Vue.component('snippet', VueSnippet);
```
```html.verde { color:green }
```
### 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
### Contributing1. 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
- [mrignacio1231](https://github.com/mrignacio1231) Ignacio Del Nardo - creator, maintainer