Skip to content

Commit 5c6f9d1

Browse files
authored
Vue-highlightjs
Vue3 highlightjs with line numbers.
1 parent 296ceed commit 5c6f9d1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ Vue3 highlightjs with line numbers.
33

44
## Toggle theme dark/light mode
55

6-
```js
6+
```vue
7+
<script setup>
78
import CodeHighlight from '@/components/utils/CodeHighlight/CodeHighlight.vue'
9+
</script>
810
9-
<CodeHighlight lang="php" :code="code" />
10-
<CodeHighlight lang="php" :code="code" theme="dark-theme" />
11+
<template>
12+
<CodeHighlight lang="php" :code="code" />
13+
<CodeHighlight lang="php" :code="code" theme="dark-theme" />
14+
<template>
1115
```
1216

1317
## Instalacja

0 commit comments

Comments
 (0)