You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,11 +44,11 @@ Vue.use(VueCodeHighlight) //registers the v-highlight directive
44
44
And then in any Vue component:
45
45
46
46
```html
47
-
<articlev-highlight >
47
+
<divv-highlight >
48
48
...
49
-
</article>
49
+
</div>
50
50
```
51
-
Every node under the article component having the following structure will be syntax highlighted.
51
+
All markup under the div element having the following structure will be syntax highlighted.
52
52
53
53
```html
54
54
<preclass="language-javascript">
@@ -57,6 +57,7 @@ Every node under the article component having the following structure will be sy
57
57
</code>
58
58
</pre>
59
59
```
60
+
60
61
To give the highlighter a window look in a directive mode, also don't forget to include the `./node_modules/vue-code-highlight/themes/window.css` file somewhere in your app.
0 commit comments