svelte-highlight 7.5.0 → 7.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (253) hide show
  1. package/Highlight.svelte.d.ts +32 -14
  2. package/HighlightAuto.svelte.d.ts +8 -43
  3. package/HighlightSvelte.svelte.d.ts +8 -43
  4. package/LangTag.svelte +2 -2
  5. package/LangTag.svelte.d.ts +17 -29
  6. package/LineNumbers.svelte +2 -2
  7. package/README.md +17 -15
  8. package/package.json +1 -1
  9. package/styles/3024.css +0 -48
  10. package/styles/a11y-dark.css +0 -7
  11. package/styles/a11y-light.css +0 -7
  12. package/styles/agate.css +0 -2
  13. package/styles/an-old-hope.css +0 -8
  14. package/styles/androidstudio.css +0 -4
  15. package/styles/apathy.css +0 -48
  16. package/styles/apprentice.css +0 -48
  17. package/styles/arduino-light.css +0 -5
  18. package/styles/arta.css +0 -4
  19. package/styles/ascetic.css +0 -5
  20. package/styles/ashes.css +0 -48
  21. package/styles/atelier-cave-light.css +0 -48
  22. package/styles/atelier-cave.css +0 -48
  23. package/styles/atelier-dune-light.css +0 -48
  24. package/styles/atelier-dune.css +0 -48
  25. package/styles/atelier-estuary-light.css +0 -48
  26. package/styles/atelier-estuary.css +0 -48
  27. package/styles/atelier-forest-light.css +0 -48
  28. package/styles/atelier-forest.css +0 -48
  29. package/styles/atelier-heath-light.css +0 -48
  30. package/styles/atelier-heath.css +0 -48
  31. package/styles/atelier-lakeside-light.css +0 -48
  32. package/styles/atelier-lakeside.css +0 -48
  33. package/styles/atelier-plateau-light.css +0 -48
  34. package/styles/atelier-plateau.css +0 -48
  35. package/styles/atelier-savanna-light.css +0 -48
  36. package/styles/atelier-savanna.css +0 -48
  37. package/styles/atelier-seaside-light.css +0 -48
  38. package/styles/atelier-seaside.css +0 -48
  39. package/styles/atelier-sulphurpool-light.css +0 -48
  40. package/styles/atelier-sulphurpool.css +0 -48
  41. package/styles/atlas.css +0 -48
  42. package/styles/atom-one-dark-reasonable.css +0 -7
  43. package/styles/atom-one-dark.css +0 -19
  44. package/styles/atom-one-light.css +0 -19
  45. package/styles/base16-github.css +0 -48
  46. package/styles/base16-ir-black.css +0 -48
  47. package/styles/base16-monokai.css +0 -48
  48. package/styles/base16-nord.css +0 -48
  49. package/styles/bespin.css +0 -48
  50. package/styles/black-metal-bathory.css +0 -48
  51. package/styles/black-metal-burzum.css +0 -48
  52. package/styles/black-metal-dark-funeral.css +0 -48
  53. package/styles/black-metal-gorgoroth.css +0 -48
  54. package/styles/black-metal-immortal.css +0 -48
  55. package/styles/black-metal-khold.css +0 -48
  56. package/styles/black-metal-marduk.css +0 -48
  57. package/styles/black-metal-mayhem.css +0 -48
  58. package/styles/black-metal-nile.css +0 -48
  59. package/styles/black-metal-venom.css +0 -48
  60. package/styles/black-metal.css +0 -48
  61. package/styles/brewer.css +0 -48
  62. package/styles/bright.css +0 -48
  63. package/styles/brogrammer.css +0 -48
  64. package/styles/brown-paper.css +0 -8
  65. package/styles/brush-trees-dark.css +0 -48
  66. package/styles/brush-trees.css +0 -48
  67. package/styles/chalk.css +0 -48
  68. package/styles/circus.css +0 -48
  69. package/styles/classic-dark.css +0 -48
  70. package/styles/classic-light.css +0 -48
  71. package/styles/codepen-embed.css +0 -5
  72. package/styles/codeschool.css +0 -48
  73. package/styles/color-brewer.css +0 -10
  74. package/styles/colors.css +0 -48
  75. package/styles/cupcake.css +0 -48
  76. package/styles/cupertino.css +0 -48
  77. package/styles/danqing.css +0 -48
  78. package/styles/darcula.css +0 -48
  79. package/styles/dark-violet.css +0 -48
  80. package/styles/dark.css +0 -8
  81. package/styles/darkmoss.css +0 -48
  82. package/styles/darktooth.css +0 -48
  83. package/styles/decaf.css +0 -48
  84. package/styles/default-dark.css +0 -48
  85. package/styles/default-light.css +0 -48
  86. package/styles/default.css +0 -16
  87. package/styles/devibeans.css +0 -1
  88. package/styles/dirtysea.css +0 -48
  89. package/styles/docco.css +0 -3
  90. package/styles/dracula.css +0 -48
  91. package/styles/edge-dark.css +0 -48
  92. package/styles/edge-light.css +0 -48
  93. package/styles/eighties.css +0 -48
  94. package/styles/embers.css +0 -48
  95. package/styles/equilibrium-dark.css +0 -48
  96. package/styles/equilibrium-gray-dark.css +0 -48
  97. package/styles/equilibrium-gray-light.css +0 -48
  98. package/styles/equilibrium-light.css +0 -48
  99. package/styles/espresso.css +0 -48
  100. package/styles/eva-dim.css +0 -48
  101. package/styles/eva.css +0 -48
  102. package/styles/far.css +0 -8
  103. package/styles/flat.css +0 -48
  104. package/styles/foundation.css +0 -7
  105. package/styles/framer.css +0 -48
  106. package/styles/fruit-soda.css +0 -48
  107. package/styles/gigavolt.css +0 -48
  108. package/styles/github-dark-dimmed.css +0 -22
  109. package/styles/github-dark.css +0 -22
  110. package/styles/github.css +0 -22
  111. package/styles/gml.css +0 -5
  112. package/styles/google-dark.css +0 -48
  113. package/styles/google-light.css +0 -48
  114. package/styles/googlecode.css +0 -5
  115. package/styles/gradient-dark.css +0 -5
  116. package/styles/gradient-light.css +0 -5
  117. package/styles/grayscale-dark.css +0 -48
  118. package/styles/grayscale-light.css +0 -48
  119. package/styles/grayscale.css +0 -5
  120. package/styles/green-screen.css +0 -48
  121. package/styles/gruvbox-dark-hard.css +0 -48
  122. package/styles/gruvbox-dark-medium.css +0 -48
  123. package/styles/gruvbox-dark-pale.css +0 -48
  124. package/styles/gruvbox-dark-soft.css +0 -48
  125. package/styles/gruvbox-light-hard.css +0 -48
  126. package/styles/gruvbox-light-medium.css +0 -48
  127. package/styles/gruvbox-light-soft.css +0 -48
  128. package/styles/hardcore.css +0 -48
  129. package/styles/harmonic16-dark.css +0 -48
  130. package/styles/harmonic16-light.css +0 -48
  131. package/styles/heetch-dark.css +0 -48
  132. package/styles/heetch-light.css +0 -48
  133. package/styles/helios.css +0 -48
  134. package/styles/hopscotch.css +0 -48
  135. package/styles/horizon-dark.css +0 -48
  136. package/styles/horizon-light.css +0 -48
  137. package/styles/humanoid-dark.css +0 -48
  138. package/styles/humanoid-light.css +0 -48
  139. package/styles/hybrid.css +0 -14
  140. package/styles/ia-dark.css +0 -48
  141. package/styles/ia-light.css +0 -48
  142. package/styles/icy-dark.css +0 -48
  143. package/styles/idea.css +0 -5
  144. package/styles/intellij-light.css +0 -16
  145. package/styles/ir-black.css +0 -3
  146. package/styles/isbl-editor-dark.css +0 -10
  147. package/styles/isbl-editor-light.css +0 -10
  148. package/styles/isotope.css +0 -48
  149. package/styles/kimber.css +0 -48
  150. package/styles/kimbie-dark.css +0 -12
  151. package/styles/kimbie-light.css +0 -12
  152. package/styles/lightfair.css +0 -8
  153. package/styles/lioshi.css +0 -11
  154. package/styles/london-tube.css +0 -48
  155. package/styles/macintosh.css +0 -48
  156. package/styles/magula.css +0 -8
  157. package/styles/marrakesh.css +0 -48
  158. package/styles/materia.css +0 -48
  159. package/styles/material-darker.css +0 -48
  160. package/styles/material-lighter.css +0 -48
  161. package/styles/material-palenight.css +0 -48
  162. package/styles/material-vivid.css +0 -48
  163. package/styles/material.css +0 -48
  164. package/styles/mellow-purple.css +0 -48
  165. package/styles/mexico-light.css +0 -48
  166. package/styles/mocha.css +0 -48
  167. package/styles/mono-blue.css +0 -3
  168. package/styles/monokai-sublime.css +0 -5
  169. package/styles/monokai.css +0 -3
  170. package/styles/nebula.css +0 -48
  171. package/styles/night-owl.css +0 -35
  172. package/styles/nord.css +0 -43
  173. package/styles/nova.css +0 -48
  174. package/styles/obsidian.css +0 -4
  175. package/styles/ocean.css +0 -48
  176. package/styles/oceanicnext.css +0 -48
  177. package/styles/one-light.css +0 -48
  178. package/styles/onedark.css +0 -48
  179. package/styles/outrun-dark.css +0 -48
  180. package/styles/panda-syntax-dark.css +0 -5
  181. package/styles/panda-syntax-light.css +0 -5
  182. package/styles/papercolor-dark.css +0 -48
  183. package/styles/papercolor-light.css +0 -48
  184. package/styles/paraiso-dark.css +0 -11
  185. package/styles/paraiso-light.css +0 -11
  186. package/styles/paraiso.css +0 -48
  187. package/styles/pasque.css +0 -48
  188. package/styles/phd.css +0 -48
  189. package/styles/pico.css +0 -48
  190. package/styles/pojoaque.css +0 -7
  191. package/styles/pop.css +0 -48
  192. package/styles/porple.css +0 -48
  193. package/styles/purebasic.css +6 -38
  194. package/styles/qtcreator-dark.css +0 -5
  195. package/styles/qtcreator-light.css +0 -3
  196. package/styles/qualia.css +0 -48
  197. package/styles/railscasts.css +0 -48
  198. package/styles/rainbow.css +0 -5
  199. package/styles/rebecca.css +0 -48
  200. package/styles/ros-pine-dawn.css +0 -48
  201. package/styles/ros-pine-moon.css +0 -48
  202. package/styles/ros-pine.css +0 -48
  203. package/styles/routeros.css +0 -10
  204. package/styles/sagelight.css +0 -48
  205. package/styles/sandcastle.css +0 -48
  206. package/styles/school-book.css +0 -5
  207. package/styles/seti-ui.css +0 -48
  208. package/styles/shades-of-purple.css +0 -7
  209. package/styles/shapeshifter.css +0 -48
  210. package/styles/silk-dark.css +0 -48
  211. package/styles/silk-light.css +0 -48
  212. package/styles/snazzy.css +0 -48
  213. package/styles/solar-flare-light.css +0 -48
  214. package/styles/solar-flare.css +0 -48
  215. package/styles/solarized-dark.css +0 -48
  216. package/styles/solarized-light.css +0 -48
  217. package/styles/spacemacs.css +0 -48
  218. package/styles/srcery.css +1 -20
  219. package/styles/stackoverflow-dark.css +0 -24
  220. package/styles/stackoverflow-light.css +0 -24
  221. package/styles/summercamp.css +0 -48
  222. package/styles/summerfruit-dark.css +0 -48
  223. package/styles/summerfruit-light.css +0 -48
  224. package/styles/sunburst.css +0 -5
  225. package/styles/synth-midnight-terminal-dark.css +0 -48
  226. package/styles/synth-midnight-terminal-light.css +0 -48
  227. package/styles/tango.css +0 -48
  228. package/styles/tender.css +0 -48
  229. package/styles/tokyo-night-dark.css +0 -21
  230. package/styles/tokyo-night-light.css +0 -21
  231. package/styles/tomorrow-night-blue.css +0 -11
  232. package/styles/tomorrow-night-bright.css +0 -10
  233. package/styles/tomorrow-night.css +0 -48
  234. package/styles/tomorrow.css +0 -48
  235. package/styles/twilight.css +0 -48
  236. package/styles/unikitty-dark.css +0 -48
  237. package/styles/unikitty-light.css +0 -48
  238. package/styles/vs.css +0 -5
  239. package/styles/vs2015.css +0 -7
  240. package/styles/vulcan.css +0 -48
  241. package/styles/windows-10-light.css +0 -48
  242. package/styles/windows-10.css +0 -48
  243. package/styles/windows-95-light.css +0 -48
  244. package/styles/windows-95.css +0 -48
  245. package/styles/windows-high-contrast-light.css +0 -48
  246. package/styles/windows-high-contrast.css +0 -48
  247. package/styles/windows-nt-light.css +0 -48
  248. package/styles/windows-nt.css +0 -48
  249. package/styles/woodland.css +0 -48
  250. package/styles/xcode-dusk.css +0 -48
  251. package/styles/xcode.css +0 -6
  252. package/styles/xt256.css +0 -6
  253. package/styles/zenburn.css +0 -48
@@ -2,33 +2,35 @@ import type { SvelteComponentTyped } from "svelte";
2
2
  import type { HTMLAttributes } from "svelte/elements";
3
3
  import type { LanguageType } from "./languages";
4
4
 
5
- export type HighlightProps = HTMLAttributes<HTMLPreElement> & {
6
- /**
7
- * Specify the text to highlight.
8
- */
9
- code: any;
10
-
11
- /**
12
- * Provide the language grammar used to highlight the code.
13
- * Import languages from `svelte-highlight/languages/*`.
14
- * @example
15
- * import typescript from "svelte-highlight/languages/typescript";
16
- */
17
- language: LanguageType<string>;
18
-
5
+ export type LangtagProps = {
19
6
  /**
20
7
  * Set to `true` for the language name to be
21
8
  * displayed at the top right of the code block.
22
9
  *
23
10
  * Use style props to customize styles:
11
+ * - `--langtag-top`
12
+ * - `--langtag-right`
24
13
  * - `--langtag-background`
25
14
  * - `--langtag-color`
26
15
  * - `--langtag-border-radius`
16
+ * - `--langtag-padding`
27
17
  *
28
18
  * @default false
29
19
  */
30
20
  langtag?: boolean;
31
21
 
22
+ /**
23
+ * Customize the top position of the langtag.
24
+ * @default 0
25
+ */
26
+ "--langtag-top"?: string | number;
27
+
28
+ /**
29
+ * Customize the right position of the langtag.
30
+ * @default 0
31
+ */
32
+ "--langtag-right"?: string | number;
33
+
32
34
  /**
33
35
  * Customize the background color of the langtag.
34
36
  * @default "inherit"
@@ -54,6 +56,22 @@ export type HighlightProps = HTMLAttributes<HTMLPreElement> & {
54
56
  "--langtag-padding"?: string;
55
57
  };
56
58
 
59
+ export type HighlightProps = HTMLAttributes<HTMLPreElement> &
60
+ LangtagProps & {
61
+ /**
62
+ * Specify the text to highlight.
63
+ */
64
+ code: any;
65
+
66
+ /**
67
+ * Provide the language grammar used to highlight the code.
68
+ * Import languages from `svelte-highlight/languages/*`.
69
+ * @example
70
+ * import typescript from "svelte-highlight/languages/typescript";
71
+ */
72
+ language: LanguageType<string>;
73
+ };
74
+
57
75
  export type HighlightEvents = {
58
76
  highlight: CustomEvent<{
59
77
  /**
@@ -1,49 +1,14 @@
1
1
  import type { SvelteComponentTyped } from "svelte";
2
2
  import type { HTMLAttributes } from "svelte/elements";
3
+ import type { LangtagProps } from "./Highlight.svelte";
3
4
 
4
- export type HighlightAutoProps = HTMLAttributes<HTMLPreElement> & {
5
- /**
6
- * Specify the text to highlight.
7
- */
8
- code: any;
9
-
10
- /**
11
- * Set to `true` for the language name to be
12
- * displayed at the top right of the code block.
13
- *
14
- * Use style props to customize styles:
15
- * - `--langtag-background`
16
- * - `--langtag-color`
17
- * - `--langtag-border-radius`
18
- *
19
- * @default false
20
- */
21
- langtag?: boolean;
22
-
23
- /**
24
- * Customize the background color of the langtag.
25
- * @default "inherit"
26
- */
27
- "--langtag-background"?: string;
28
-
29
- /**
30
- * Customize the text color of the langtag.
31
- * @default "inherit"
32
- */
33
- "--langtag-color"?: string;
34
-
35
- /**
36
- * Customize the border radius of the langtag.
37
- * @default 0
38
- */
39
- "--langtag-border-radius"?: string;
40
-
41
- /**
42
- * Customize the padding of the langtag.
43
- * @default "1em"
44
- */
45
- "--langtag-padding"?: string;
46
- };
5
+ export type HighlightAutoProps = HTMLAttributes<HTMLPreElement> &
6
+ LangtagProps & {
7
+ /**
8
+ * Specify the text to highlight.
9
+ */
10
+ code: any;
11
+ };
47
12
 
48
13
  export type HighlightAutoEvents = {
49
14
  highlight: CustomEvent<{
@@ -1,49 +1,14 @@
1
1
  import type { SvelteComponentTyped } from "svelte";
2
2
  import type { HTMLAttributes } from "svelte/elements";
3
+ import type { LangtagProps } from "./Highlight.svelte";
3
4
 
4
- export type HighlightSvelteProps = HTMLAttributes<HTMLPreElement> & {
5
- /**
6
- * Specify the text to highlight.
7
- */
8
- code: any;
9
-
10
- /**
11
- * Set to `true` for the language name to be
12
- * displayed at the top right of the code block.
13
- *
14
- * Use style props to customize styles:
15
- * - `--langtag-background`
16
- * - `--langtag-color`
17
- * - `--langtag-border-radius`
18
- *
19
- * @default false
20
- */
21
- langtag?: boolean;
22
-
23
- /**
24
- * Customize the background color of the langtag.
25
- * @default "inherit"
26
- */
27
- "--langtag-background"?: string;
28
-
29
- /**
30
- * Customize the text color of the langtag.
31
- * @default "inherit"
32
- */
33
- "--langtag-color"?: string;
34
-
35
- /**
36
- * Customize the border radius of the langtag.
37
- * @default 0
38
- */
39
- "--langtag-border-radius"?: string;
40
-
41
- /**
42
- * Customize the padding of the langtag.
43
- * @default "1em"
44
- */
45
- "--langtag-padding"?: string;
46
- };
5
+ export type HighlightSvelteProps = HTMLAttributes<HTMLPreElement> &
6
+ LangtagProps & {
7
+ /**
8
+ * Specify the text to highlight.
9
+ */
10
+ code: any;
11
+ };
47
12
 
48
13
  export type HighlightSvelteEvents = {
49
14
  highlight: CustomEvent<{
package/LangTag.svelte CHANGED
@@ -27,8 +27,8 @@
27
27
  .langtag::after {
28
28
  content: attr(data-language);
29
29
  position: absolute;
30
- top: 0;
31
- right: 0;
30
+ top: var(--langtag-top, 0);
31
+ right: var(--langtag-right, 0);
32
32
  display: flex;
33
33
  align-items: center;
34
34
  justify-content: center;
@@ -1,37 +1,25 @@
1
1
  import type { SvelteComponentTyped } from "svelte";
2
2
  import type { HTMLAttributes } from "svelte/elements";
3
+ import type { LangtagProps } from "./Highlight.svelte";
3
4
 
4
- export type LangTagProps = HTMLAttributes<HTMLPreElement> & {
5
- /**
6
- * Specify the text to highlight.
7
- */
8
- code: any;
5
+ export type LangTagProps = HTMLAttributes<HTMLPreElement> &
6
+ LangtagProps & {
7
+ /**
8
+ * Specify the text to highlight.
9
+ */
10
+ code: any;
9
11
 
10
- /**
11
- * Provide the highlighted code.
12
- */
13
- highlighted: string;
12
+ /**
13
+ * Provide the highlighted code.
14
+ */
15
+ highlighted: string;
14
16
 
15
- /**
16
- * Provide the language name.
17
- * @default "plaintext"
18
- */
19
- languageName?: string;
20
-
21
- /**
22
- * Set to `true` for the language name to be
23
- * displayed at the top right of the code block.
24
- *
25
- * Use style props to customize styles:
26
- * - `--langtag-background`
27
- * - `--langtag-color`
28
- * - `--langtag-border-radius`
29
- * - `--langtag-padding`
30
- *
31
- * @default false
32
- */
33
- langtag?: boolean;
34
- };
17
+ /**
18
+ * Provide the language name.
19
+ * @default "plaintext"
20
+ */
21
+ languageName?: string;
22
+ };
35
23
 
36
24
  export type LangTagEvents = {};
37
25
 
@@ -48,7 +48,7 @@
48
48
  <div
49
49
  class:line-background={true}
50
50
  style:background="var(--highlighted-background, {HIGHLIGHTED_BACKGROUND})"
51
- />
51
+ ></div>
52
52
  {/if}
53
53
  </td>
54
54
  <td>
@@ -57,7 +57,7 @@
57
57
  <div
58
58
  class:line-background={true}
59
59
  style:background="var(--highlighted-background, {HIGHLIGHTED_BACKGROUND})"
60
- />
60
+ ></div>
61
61
  {/if}
62
62
  </td>
63
63
  </tr>
package/README.md CHANGED
@@ -14,14 +14,17 @@ The Changelog is [available on GitHub](https://github.com/metonym/svelte-highlig
14
14
  ## Installation
15
15
 
16
16
  ```bash
17
- # Yarn
18
- yarn add -D svelte-highlight
19
-
20
17
  # npm
21
18
  npm i -D svelte-highlight
22
19
 
23
20
  # pnpm
24
21
  pnpm i -D svelte-highlight highlight.js
22
+
23
+ # Bun
24
+ bun i -D svelte-highlight
25
+
26
+ # Yarn
27
+ yarn add -D svelte-highlight
25
28
  ```
26
29
 
27
30
  Note that [pnpm](https://github.com/pnpm/pnpm) users must also install `highlight.js`.
@@ -97,21 +100,18 @@ Depending on your set-up, importing a CSS StyleSheet in Svelte may require a CSS
97
100
 
98
101
  CSS StyleSheets can also be externally linked from a Content Delivery Network (CDN) like [unpkg.com](https://unpkg.com/).
99
102
 
100
- > **Warning**
103
+ > [!WARNING]
101
104
  > Using a CDN is best suited for prototyping and not recommended for production use.
102
105
 
103
106
  **HTML**
104
107
 
105
108
  ```html
106
- <!doctype html>
107
- <html lang="en">
108
- <head>
109
- <link
110
- rel="stylesheet"
111
- href="https://unpkg.com/svelte-highlight/styles/github.css"
112
- />
113
- </head>
114
- </html>
109
+ <head>
110
+ <link
111
+ rel="stylesheet"
112
+ href="https://unpkg.com/svelte-highlight/styles/github.css"
113
+ />
114
+ </head>
115
115
  ```
116
116
 
117
117
  **svelte:head**
@@ -146,9 +146,9 @@ Use the `HighlightSvelte` component for Svelte syntax highlighting.
146
146
 
147
147
  ## Auto-highlighting
148
148
 
149
- The `HighlightAuto` component uses [highlightAuto](https://highlightjs.readthedocs.io/en/latest/api.html#highlightauto) API.
149
+ The `HighlightAuto` component uses the [highlightAuto API](https://highlightjs.readthedocs.io/en/latest/api.html#highlightauto) and attempts to guess what grammar to use based on the provided `code`.
150
150
 
151
- > **Warning**
151
+ > [!WARNING]
152
152
  > Auto-highlighting will result in a larger bundle size. Specify a language if possible.
153
153
 
154
154
  ```svelte
@@ -283,6 +283,8 @@ See the [Languages page](SUPPORTED_LANGUAGES.md) for a list of supported languag
283
283
 
284
284
  | Style prop | Description | Default value |
285
285
  | :---------------------- | :------------------------------ | :------------ |
286
+ | --langtag-top | Top position of the langtag | `0` |
287
+ | --langtag-right | Right position of the langtag | `0` |
286
288
  | --langtag-background | Background color of the langtag | `inherit` |
287
289
  | --langtag-color | Text color of the langtag | `inherit` |
288
290
  | --langtag-border-radius | Border radius of the langtag | `0` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-highlight",
3
- "version": "7.5.0",
3
+ "version": "7.6.1",
4
4
  "license": "MIT",
5
5
  "description": "Svelte component library for highlighting code using highlight.js",
6
6
  "author": "Eric Liu (https://github.com/metonym)",
package/styles/3024.css CHANGED
@@ -13,32 +13,6 @@ code.hljs {
13
13
  Maintainer: @highlightjs/core-team
14
14
  Version: 2021.09.0
15
15
  */
16
- /*
17
- WARNING: DO NOT EDIT THIS FILE DIRECTLY.
18
-
19
- This theme file was auto-generated from the Base16 scheme 3024
20
- by the Highlight.js Base16 template builder.
21
-
22
- - https://github.com/highlightjs/base16-highlightjs
23
- */
24
- /*
25
- base00 #090300 Default Background
26
- base01 #3a3432 Lighter Background (Used for status bars, line number and folding marks)
27
- base02 #4a4543 Selection Background
28
- base03 #5c5855 Comments, Invisibles, Line Highlighting
29
- base04 #807d7c Dark Foreground (Used for status bars)
30
- base05 #a5a2a2 Default Foreground, Caret, Delimiters, Operators
31
- base06 #d6d5d4 Light Foreground (Not often used)
32
- base07 #f7f7f7 Light Background (Not often used)
33
- base08 #db2d20 Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
34
- base09 #e8bbd0 Integers, Boolean, Constants, XML Attributes, Markup Link Url
35
- base0A #fded02 Classes, Markup Bold, Search Text Background
36
- base0B #01a252 Strings, Inherited Class, Markup Code, Diff Inserted
37
- base0C #b5e4f4 Support, Regular Expressions, Escape Characters, Markup Quotes
38
- base0D #01a0e4 Functions, Methods, Attribute IDs, Headings
39
- base0E #a16a94 Keywords, Storage, Selector, Markup Italic, Diff Changed
40
- base0F #cdab53 Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?>
41
- */
42
16
  pre code.hljs {
43
17
  display: block;
44
18
  overflow-x: auto;
@@ -56,16 +30,12 @@ code.hljs {
56
30
  background-color: #4a4543;
57
31
  color: #a5a2a2;
58
32
  }
59
- /* purposely do not highlight these things */
60
- /* base03 - #5c5855 - Comments, Invisibles, Line Highlighting */
61
33
  .hljs-comment {
62
34
  color: #5c5855;
63
35
  }
64
- /* base04 - #807d7c - Dark Foreground (Used for status bars) */
65
36
  .hljs-tag {
66
37
  color: #807d7c;
67
38
  }
68
- /* base05 - #a5a2a2 - Default Foreground, Caret, Delimiters, Operators */
69
39
  .hljs-subst,
70
40
  .hljs-punctuation,
71
41
  .hljs-operator {
@@ -74,7 +44,6 @@ code.hljs {
74
44
  .hljs-operator {
75
45
  opacity: 0.7;
76
46
  }
77
- /* base08 - Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted */
78
47
  .hljs-bullet,
79
48
  .hljs-variable,
80
49
  .hljs-template-variable,
@@ -83,7 +52,6 @@ code.hljs {
83
52
  .hljs-deletion {
84
53
  color: #db2d20;
85
54
  }
86
- /* base09 - Integers, Boolean, Constants, XML Attributes, Markup Link Url */
87
55
  .hljs-symbol,
88
56
  .hljs-number,
89
57
  .hljs-link,
@@ -92,7 +60,6 @@ code.hljs {
92
60
  .hljs-literal {
93
61
  color: #e8bbd0;
94
62
  }
95
- /* base0A - Classes, Markup Bold, Search Text Background */
96
63
  .hljs-title,
97
64
  .hljs-class .hljs-title,
98
65
  .hljs-title.class_ {
@@ -102,15 +69,12 @@ code.hljs {
102
69
  font-weight: bold;
103
70
  color: #fded02;
104
71
  }
105
- /* base0B - Strings, Inherited Class, Markup Code, Diff Inserted */
106
72
  .hljs-code,
107
73
  .hljs-addition,
108
74
  .hljs-title.class_.inherited__,
109
75
  .hljs-string {
110
76
  color: #01a252;
111
77
  }
112
- /* base0C - Support, Regular Expressions, Escape Characters, Markup Quotes */
113
- /* guessing */
114
78
  .hljs-built_in,
115
79
  .hljs-doctag,
116
80
  .hljs-quote,
@@ -118,7 +82,6 @@ code.hljs {
118
82
  .hljs-regexp {
119
83
  color: #b5e4f4;
120
84
  }
121
- /* base0D - Functions, Methods, Attribute IDs, Headings */
122
85
  .hljs-function .hljs-title,
123
86
  .hljs-attribute,
124
87
  .ruby .hljs-property,
@@ -126,11 +89,6 @@ code.hljs {
126
89
  .hljs-section {
127
90
  color: #01a0e4;
128
91
  }
129
- /* base0E - Keywords, Storage, Selector, Markup Italic, Diff Changed */
130
- /* .hljs-selector-id, */
131
- /* .hljs-selector-class, */
132
- /* .hljs-selector-attr, */
133
- /* .hljs-selector-pseudo, */
134
92
  .hljs-type,
135
93
  .hljs-template-tag,
136
94
  .diff .hljs-meta,
@@ -141,17 +99,11 @@ code.hljs {
141
99
  color: #a16a94;
142
100
  font-style: italic;
143
101
  }
144
- /* base0F - Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?> */
145
- /*
146
- prevent top level .keyword and .string scopes
147
- from leaking into meta by accident
148
- */
149
102
  .hljs-meta,
150
103
  .hljs-meta .hljs-keyword,
151
104
  .hljs-meta .hljs-string {
152
105
  color: #cdab53;
153
106
  }
154
- /* for v10 compatible themes */
155
107
  .hljs-meta .hljs-keyword,
156
108
  .hljs-meta-keyword {
157
109
  font-weight: bold;
@@ -17,12 +17,10 @@ code.hljs {
17
17
  background: #2b2b2b;
18
18
  color: #f8f8f2;
19
19
  }
20
- /* Comment */
21
20
  .hljs-comment,
22
21
  .hljs-quote {
23
22
  color: #d4d0ab;
24
23
  }
25
- /* Red */
26
24
  .hljs-variable,
27
25
  .hljs-template-variable,
28
26
  .hljs-tag,
@@ -33,7 +31,6 @@ code.hljs {
33
31
  .hljs-deletion {
34
32
  color: #ffa07a;
35
33
  }
36
- /* Orange */
37
34
  .hljs-number,
38
35
  .hljs-built_in,
39
36
  .hljs-literal,
@@ -43,23 +40,19 @@ code.hljs {
43
40
  .hljs-link {
44
41
  color: #f5ab35;
45
42
  }
46
- /* Yellow */
47
43
  .hljs-attribute {
48
44
  color: #ffd700;
49
45
  }
50
- /* Green */
51
46
  .hljs-string,
52
47
  .hljs-symbol,
53
48
  .hljs-bullet,
54
49
  .hljs-addition {
55
50
  color: #abe338;
56
51
  }
57
- /* Blue */
58
52
  .hljs-title,
59
53
  .hljs-section {
60
54
  color: #00e0e0;
61
55
  }
62
- /* Purple */
63
56
  .hljs-keyword,
64
57
  .hljs-selector-tag {
65
58
  color: #dcc6e0;
@@ -17,12 +17,10 @@ code.hljs {
17
17
  background: #fefefe;
18
18
  color: #545454;
19
19
  }
20
- /* Comment */
21
20
  .hljs-comment,
22
21
  .hljs-quote {
23
22
  color: #696969;
24
23
  }
25
- /* Red */
26
24
  .hljs-variable,
27
25
  .hljs-template-variable,
28
26
  .hljs-tag,
@@ -33,7 +31,6 @@ code.hljs {
33
31
  .hljs-deletion {
34
32
  color: #d91e18;
35
33
  }
36
- /* Orange */
37
34
  .hljs-number,
38
35
  .hljs-built_in,
39
36
  .hljs-literal,
@@ -43,23 +40,19 @@ code.hljs {
43
40
  .hljs-link {
44
41
  color: #aa5d00;
45
42
  }
46
- /* Yellow */
47
43
  .hljs-attribute {
48
44
  color: #aa5d00;
49
45
  }
50
- /* Green */
51
46
  .hljs-string,
52
47
  .hljs-symbol,
53
48
  .hljs-bullet,
54
49
  .hljs-addition {
55
50
  color: #008000;
56
51
  }
57
- /* Blue */
58
52
  .hljs-title,
59
53
  .hljs-section {
60
54
  color: #007faa;
61
55
  }
62
- /* Purple */
63
56
  .hljs-keyword,
64
57
  .hljs-selector-tag {
65
58
  color: #7928a1;
package/styles/agate.css CHANGED
@@ -102,11 +102,9 @@ code.hljs {
102
102
  background: #a2fca2;
103
103
  color: #333;
104
104
  }
105
- /* Purposely ignored */
106
105
  .hljs-subst {
107
106
  color: #fff;
108
107
  }
109
- /* This applies only if HTML auto-merging plugin is enabled by user (#2889) */
110
108
  .hljs a {
111
109
  color: inherit;
112
110
  }
@@ -15,17 +15,14 @@ code.hljs {
15
15
  Based on Jesse Leite's Atom syntax theme 'An Old Hope'
16
16
  https://github.com/JesseLeite/an-old-hope-syntax-atom
17
17
  */
18
- /* Millenium Falcon */
19
18
  .hljs {
20
19
  background: #1c1d21;
21
20
  color: #c0c5ce;
22
21
  }
23
- /* Death Star Comment */
24
22
  .hljs-comment,
25
23
  .hljs-quote {
26
24
  color: #b6b18b;
27
25
  }
28
- /* Darth Vader */
29
26
  .hljs-variable,
30
27
  .hljs-template-variable,
31
28
  .hljs-tag,
@@ -36,7 +33,6 @@ code.hljs {
36
33
  .hljs-deletion {
37
34
  color: #eb3c54;
38
35
  }
39
- /* Threepio */
40
36
  .hljs-number,
41
37
  .hljs-built_in,
42
38
  .hljs-literal,
@@ -46,23 +42,19 @@ code.hljs {
46
42
  .hljs-link {
47
43
  color: #e7ce56;
48
44
  }
49
- /* Luke Skywalker */
50
45
  .hljs-attribute {
51
46
  color: #ee7c2b;
52
47
  }
53
- /* Obi Wan Kenobi */
54
48
  .hljs-string,
55
49
  .hljs-symbol,
56
50
  .hljs-bullet,
57
51
  .hljs-addition {
58
52
  color: #4fb4d7;
59
53
  }
60
- /* Yoda */
61
54
  .hljs-title,
62
55
  .hljs-section {
63
56
  color: #78bb65;
64
57
  }
65
- /* Mace Windu */
66
58
  .hljs-keyword,
67
59
  .hljs-selector-tag {
68
60
  color: #b45ea4;
@@ -6,10 +6,6 @@ pre code.hljs {
6
6
  code.hljs {
7
7
  padding: 3px 5px;
8
8
  }
9
- /*
10
- Date: 24 Fev 2015
11
- Author: Pedro Oliveira <kanytu@gmail . com>
12
- */
13
9
  .hljs {
14
10
  color: #a9b7c6;
15
11
  background: #282b2e;