|
1 | 1 | # Vue Prism Editor
|
2 | 2 |
|
3 |
| -<p align="center"> |
4 |
| - |
5 |
| - |
6 |
| - |
7 |
| -[](https://github.com/koca/vue-prism-editor) |
8 |
| -[](https://circleci.com/gh/koca/vue-prism-editor/tree/master) |
9 |
| - |
10 |
| -<!--  --> |
11 |
| - |
12 |
| -</p> |
| 3 | +[![Bundle size (minified + gzip)][bundle-size-badge]][bundle-size] |
| 4 | +[![NPM Downloads][downloads-badge]][downloads] |
| 5 | +[![Build Status][build-badge]][build] |
| 6 | +![Codecov][covarage-badge] |
| 7 | +[![Version][version-badge]][package] |
| 8 | +[![MIT License][license-badge]][license] |
13 | 9 |
|
14 | 10 | > A dead simple code editor with syntax highlighting and line numbers. 3kb/z
|
15 | 11 |
|
@@ -60,7 +56,7 @@ Register the component locally and use it (recommended)
|
60 | 56 |
|
61 | 57 | ```html
|
62 | 58 | <template>
|
63 |
| - <prism-editor v-model="code" :highlight="highlighter" line-numbers></prism-editor> |
| 59 | + <prism-editor class="my-editor" v-model="code" :highlight="highlighter" line-numbers></prism-editor> |
64 | 60 | </template>
|
65 | 61 |
|
66 | 62 | <script>
|
@@ -186,3 +182,16 @@ Due to the way it works, it has certain limitations:
|
186 | 182 | ## License
|
187 | 183 |
|
188 | 184 | MIT
|
| 185 | + |
| 186 | +[build-badge]: https://img.shields.io/circleci/project/github/koca/vue-prism-editor/master.svg?style=flat-square |
| 187 | +[build]: https://circleci.com/gh/koca/vue-prism-editor |
| 188 | +[downloads-badge]: https://img.shields.io/npm/dt/vue-prism-editor.svg?style=flat-square |
| 189 | +[downloads]: https://npmjs.com/package/vue-prism-editor |
| 190 | +[build-badge]: https://img.shields.io/npm/dm/vue-client-only.svg?style=flat |
| 191 | +[license-badge]: https://img.shields.io/npm/l/vue-prism-editor.svg?style=flat-square |
| 192 | +[license]: https://opensource.org/licenses/MIT |
| 193 | +[version-badge]: https://img.shields.io/npm/v/vue-prism-editor.svg?style=flat-square |
| 194 | +[package]: https://www.npmjs.com/package/vue-prism-editor |
| 195 | +[bundle-size-badge]: https://img.shields.io/bundlephobia/minzip/vue-prism-editor.svg?style=flat-square |
| 196 | +[bundle-size]: https://bundlephobia.com/result?p=vue-prism-editor |
| 197 | +[covarage-badge]: https://img.shields.io/codecov/c/github/koca/vue-prism-editor?style=flat-square |
0 commit comments