|
16 | 16 | (<code>neon-bunny</code>, |
17 | 17 | <code>neon-bunny-carrot</code>) built into the component that are based |
18 | 18 | off of my own VSCode |
19 | | - <a :href="links.neonBunnyTheme" target="_blank">Neon Bunny Theme</a>. |
| 19 | + <a |
| 20 | + :href="links.neonBunnyTheme" |
| 21 | + target="_blank" |
| 22 | + >Neon Bunny Theme</a>. |
20 | 23 | </p> |
21 | 24 |
|
22 | 25 | <CodeBlock |
|
32 | 35 | <p> |
33 | 36 | Another other is to use the main |
34 | 37 | <a |
35 | | - :href=" |
36 | | - selectedLibrary.id === 'prism' |
37 | | - ? prismLinks.homepage |
38 | | - : highlightJsLinks.homepage |
39 | | - " |
| 38 | + :href="selectedLibrary.id === 'prism' |
| 39 | + ? prismLinks.homepage |
| 40 | + : highlightJsLinks.homepage |
| 41 | + " |
40 | 42 | target="_blank" |
41 | | - >{{ selectedLibrary.label }}</a |
42 | | - > |
| 43 | + >{{ selectedLibrary.label }}</a> |
43 | 44 | themes. If you use the component to load the theme, you just need to set |
44 | 45 | the |
45 | 46 | <a href="#props-theme-option">theme</a> prop to the desired theme. When |
46 | 47 | you load it this way, the component will use a <code>fetch</code> call |
47 | 48 | to load them themes from the |
48 | 49 | <a |
49 | | - :href=" |
50 | | - selectedLibrary.id === 'prism' |
51 | | - ? prismLinks.cdn |
52 | | - : highlightJsLinks.cdn |
53 | | - " |
| 50 | + :href="selectedLibrary.id === 'prism' |
| 51 | + ? prismLinks.cdn |
| 52 | + : highlightJsLinks.cdn |
| 53 | + " |
54 | 54 | target="_blank" |
55 | | - >jsDelivr CDN</a |
56 | | - >. Fetching the {{ selectedLibrary.label }} themes from a CDN was the |
| 55 | + >jsDelivr CDN</a>. Fetching the {{ selectedLibrary.label }} themes from a CDN was the |
57 | 56 | best method I could figure out at this time to dynamically load the |
58 | 57 | themes, while making it easier for you to use them. You can also link to |
59 | 58 | another CDN of your choice. |
|
92 | 91 |
|
93 | 92 | <p v-if="selectedLibrary.id === 'prism'"> |
94 | 93 | Themes from their |
95 | | - <a :href="prismLinks.themes" target="_blank">Prism themes</a> |
| 94 | + <a |
| 95 | + :href="prismLinks.themes" |
| 96 | + target="_blank" |
| 97 | + >Prism themes</a> |
96 | 98 | repository can be used this way as well. |
97 | 99 | <span v-html="tabIconCopy"></span> |
98 | 100 | </p> |
|
115 | 117 | <CodeBlock |
116 | 118 | :code="examples[selectedLibrary.id].importCss" |
117 | 119 | :highlightjs="selectedLibrary.id === 'highlightjs'" |
118 | | - label="Using import (css/sass/scss)" |
| 120 | + label="Using <code>@use</code> (css/sass/scss)" |
119 | 121 | lang="html" |
120 | 122 | :prismjs="selectedLibrary.id === 'prism'" |
121 | 123 | :theme="selectedTheme" |
122 | | - /> |
| 124 | + > |
| 125 | + <template #label> |
| 126 | + Using <code>@use</code> (css/sass/scss) |
| 127 | + </template> |
| 128 | + </CodeBlock> |
123 | 129 | </div> |
124 | 130 | </div> |
125 | 131 | </template> |
@@ -153,7 +159,7 @@ const examples = { |
153 | 159 | theme="neon-bunny-carrot" |
154 | 160 | />`, |
155 | 161 | importCss: `<style> |
156 | | - @import 'prismjs/themes/prism-coy.css'; |
| 162 | + @use 'prismjs/themes/prism-coy.css'; |
157 | 163 | <\/style>`, |
158 | 164 | importJs: `<script setup> |
159 | 165 | import 'prismjs/themes/prism-coy.css'; |
@@ -190,7 +196,7 @@ const examples = { |
190 | 196 | theme="neon-bunny-carrot" |
191 | 197 | />`, |
192 | 198 | importCss: `<style> |
193 | | - @import 'highlight.js/styles/base16/onedark.css'; |
| 199 | + @use 'highlight.js/styles/base16/onedark.css'; |
194 | 200 | <\/style>`, |
195 | 201 | importJs: `<script setup> |
196 | 202 | import 'highlight.js/styles/base16/onedark.css'; |
|
0 commit comments