Skip to content

Commit 7ab4af0

Browse files
author
Jan Bílek
authored
Update README.md
1 parent 50bcf4e commit 7ab4af0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ Vue.use(VueCodeHighlight) //registers the v-highlight directive
4444
And then in any Vue component:
4545

4646
```html
47-
<article v-highlight >
47+
<div v-highlight >
4848
...
49-
</article>
49+
</div>
5050
```
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.
5252

5353
```html
5454
<pre class="language-javascript">
@@ -57,6 +57,7 @@ Every node under the article component having the following structure will be sy
5757
</code>
5858
</pre>
5959
```
60+
6061
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.
6162

6263
## Themes

0 commit comments

Comments
 (0)