Skip to content

Commit 0a54eae

Browse files
DannyFelizFranckFreiburger
authored andcommittedAug 30, 2019
Fix syntax highlighting (#177)
1 parent 23fb8e2 commit 0a54eae

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
 

‎README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
vue.js pdf viewer
33

44
## Install
5-
```
5+
```bash
66
npm install --save vue-pdf
77
```
88

99
## Example - basic
10-
```
10+
```vue
1111
<template>
1212
<pdf src="./static/relativity.pdf"></pdf>
1313
</template>
@@ -91,7 +91,7 @@ Triggered when an internal link is clicked
9191
## Examples
9292

9393
##### Example - current page / page count
94-
```
94+
```vue
9595
<template>
9696
<div>
9797
{{currentPage}} / {{pageCount}}
@@ -124,7 +124,7 @@ export default {
124124

125125

126126
##### Example - display multiple pages of the same pdf document
127-
```
127+
```vue
128128
<template>
129129
<div>
130130
<pdf
@@ -167,7 +167,7 @@ export default {
167167

168168

169169
##### Example - print all pages
170-
```
170+
```vue
171171
<template>
172172
<button @click="$refs.myPdfComponent.print()">print</button>
173173
<pdf ref="myPdfComponent" src="https://cdn.mozilla.net/pdfjs/tracemonkey.pdf"></pdf>
@@ -176,7 +176,7 @@ export default {
176176

177177

178178
##### Example - print multiple pages
179-
```
179+
```vue
180180
<template>
181181
<button @click="$refs.myPdfComponent.print(100, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14])">print</button>
182182
<pdf ref="myPdfComponent" src="https://cdn.mozilla.net/pdfjs/tracemonkey.pdf"></pdf>
@@ -185,7 +185,7 @@ export default {
185185

186186

187187
##### Example - get text content
188-
```
188+
```vue
189189
<template>
190190
<div>
191191
<button
@@ -229,7 +229,7 @@ export default {
229229

230230

231231
##### Example - complete
232-
```
232+
```vue
233233
<template>
234234
<div>
235235
<input type="checkbox" v-model="show">

0 commit comments

Comments
 (0)
Please sign in to comment.