svelte-highlight 6.2.0 → 6.2.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 (445) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/README.md +80 -12
  3. package/languages/1c.d.ts +2 -0
  4. package/languages/abnf.d.ts +2 -0
  5. package/languages/accesslog.d.ts +2 -0
  6. package/languages/actionscript.d.ts +2 -0
  7. package/languages/ada.d.ts +2 -0
  8. package/languages/angelscript.d.ts +2 -0
  9. package/languages/apache.d.ts +2 -0
  10. package/languages/applescript.d.ts +2 -0
  11. package/languages/arcade.d.ts +2 -0
  12. package/languages/arduino.d.ts +2 -0
  13. package/languages/armasm.d.ts +2 -0
  14. package/languages/asciidoc.d.ts +2 -0
  15. package/languages/aspectj.d.ts +2 -0
  16. package/languages/autohotkey.d.ts +2 -0
  17. package/languages/autoit.d.ts +2 -0
  18. package/languages/avrasm.d.ts +2 -0
  19. package/languages/awk.d.ts +2 -0
  20. package/languages/axapta.d.ts +2 -0
  21. package/languages/bash.d.ts +2 -0
  22. package/languages/basic.d.ts +2 -0
  23. package/languages/bnf.d.ts +2 -0
  24. package/languages/brainfuck.d.ts +2 -0
  25. package/languages/c.d.ts +2 -0
  26. package/languages/cal.d.ts +2 -0
  27. package/languages/capnproto.d.ts +2 -0
  28. package/languages/ceylon.d.ts +2 -0
  29. package/languages/clean.d.ts +2 -0
  30. package/languages/clojure-repl.d.ts +2 -0
  31. package/languages/clojure.d.ts +2 -0
  32. package/languages/cmake.d.ts +2 -0
  33. package/languages/coffeescript.d.ts +2 -0
  34. package/languages/coq.d.ts +2 -0
  35. package/languages/cos.d.ts +2 -0
  36. package/languages/cpp.d.ts +2 -0
  37. package/languages/crmsh.d.ts +2 -0
  38. package/languages/crystal.d.ts +2 -0
  39. package/languages/csharp.d.ts +2 -0
  40. package/languages/csp.d.ts +2 -0
  41. package/languages/css.d.ts +2 -0
  42. package/languages/d.d.ts +2 -0
  43. package/languages/dart.d.ts +2 -0
  44. package/languages/delphi.d.ts +2 -0
  45. package/languages/diff.d.ts +2 -0
  46. package/languages/django.d.ts +2 -0
  47. package/languages/dns.d.ts +2 -0
  48. package/languages/dockerfile.d.ts +2 -0
  49. package/languages/dos.d.ts +2 -0
  50. package/languages/dsconfig.d.ts +2 -0
  51. package/languages/dts.d.ts +2 -0
  52. package/languages/dust.d.ts +2 -0
  53. package/languages/ebnf.d.ts +2 -0
  54. package/languages/elixir.d.ts +2 -0
  55. package/languages/elm.d.ts +2 -0
  56. package/languages/erb.d.ts +2 -0
  57. package/languages/erlang-repl.d.ts +2 -0
  58. package/languages/erlang.d.ts +2 -0
  59. package/languages/excel.d.ts +2 -0
  60. package/languages/fix.d.ts +2 -0
  61. package/languages/flix.d.ts +2 -0
  62. package/languages/fortran.d.ts +2 -0
  63. package/languages/fsharp.d.ts +2 -0
  64. package/languages/gams.d.ts +2 -0
  65. package/languages/gauss.d.ts +2 -0
  66. package/languages/gcode.d.ts +2 -0
  67. package/languages/gherkin.d.ts +2 -0
  68. package/languages/glsl.d.ts +2 -0
  69. package/languages/gml.d.ts +2 -0
  70. package/languages/go.d.ts +2 -0
  71. package/languages/golo.d.ts +2 -0
  72. package/languages/gradle.d.ts +2 -0
  73. package/languages/graphql.d.ts +2 -0
  74. package/languages/groovy.d.ts +2 -0
  75. package/languages/haml.d.ts +2 -0
  76. package/languages/handlebars.d.ts +2 -0
  77. package/languages/haskell.d.ts +2 -0
  78. package/languages/haxe.d.ts +2 -0
  79. package/languages/hsp.d.ts +2 -0
  80. package/languages/http.d.ts +2 -0
  81. package/languages/hy.d.ts +2 -0
  82. package/languages/index.d.ts +199 -0
  83. package/languages/inform7.d.ts +2 -0
  84. package/languages/ini.d.ts +2 -0
  85. package/languages/irpf90.d.ts +2 -0
  86. package/languages/isbl.d.ts +2 -0
  87. package/languages/java.d.ts +2 -0
  88. package/languages/javascript.d.ts +2 -0
  89. package/languages/jboss-cli.d.ts +2 -0
  90. package/languages/json.d.ts +2 -0
  91. package/languages/julia-repl.d.ts +2 -0
  92. package/languages/julia.d.ts +2 -0
  93. package/languages/kotlin.d.ts +2 -0
  94. package/languages/lasso.d.ts +2 -0
  95. package/languages/latex.d.ts +2 -0
  96. package/languages/ldif.d.ts +2 -0
  97. package/languages/leaf.d.ts +2 -0
  98. package/languages/less.d.ts +2 -0
  99. package/languages/lisp.d.ts +2 -0
  100. package/languages/livecodeserver.d.ts +2 -0
  101. package/languages/livescript.d.ts +2 -0
  102. package/languages/llvm.d.ts +2 -0
  103. package/languages/lsl.d.ts +2 -0
  104. package/languages/lua.d.ts +2 -0
  105. package/languages/makefile.d.ts +2 -0
  106. package/languages/markdown.d.ts +2 -0
  107. package/languages/mathematica.d.ts +2 -0
  108. package/languages/matlab.d.ts +2 -0
  109. package/languages/maxima.d.ts +2 -0
  110. package/languages/mel.d.ts +2 -0
  111. package/languages/mercury.d.ts +2 -0
  112. package/languages/mipsasm.d.ts +2 -0
  113. package/languages/mizar.d.ts +2 -0
  114. package/languages/mojolicious.d.ts +2 -0
  115. package/languages/monkey.d.ts +2 -0
  116. package/languages/moonscript.d.ts +2 -0
  117. package/languages/n1ql.d.ts +2 -0
  118. package/languages/nestedtext.d.ts +2 -0
  119. package/languages/nginx.d.ts +2 -0
  120. package/languages/nim.d.ts +2 -0
  121. package/languages/nix.d.ts +2 -0
  122. package/languages/node-repl.d.ts +2 -0
  123. package/languages/nsis.d.ts +2 -0
  124. package/languages/objectivec.d.ts +2 -0
  125. package/languages/ocaml.d.ts +2 -0
  126. package/languages/openscad.d.ts +2 -0
  127. package/languages/oxygene.d.ts +2 -0
  128. package/languages/parser3.d.ts +2 -0
  129. package/languages/perl.d.ts +2 -0
  130. package/languages/pf.d.ts +2 -0
  131. package/languages/pgsql.d.ts +2 -0
  132. package/languages/php-template.d.ts +2 -0
  133. package/languages/php.d.ts +2 -0
  134. package/languages/plaintext.d.ts +2 -0
  135. package/languages/pony.d.ts +2 -0
  136. package/languages/powershell.d.ts +2 -0
  137. package/languages/processing.d.ts +2 -0
  138. package/languages/profile.d.ts +2 -0
  139. package/languages/prolog.d.ts +2 -0
  140. package/languages/properties.d.ts +2 -0
  141. package/languages/protobuf.d.ts +2 -0
  142. package/languages/puppet.d.ts +2 -0
  143. package/languages/purebasic.d.ts +2 -0
  144. package/languages/python-repl.d.ts +2 -0
  145. package/languages/python.d.ts +2 -0
  146. package/languages/q.d.ts +2 -0
  147. package/languages/qml.d.ts +2 -0
  148. package/languages/r.d.ts +2 -0
  149. package/languages/reasonml.d.ts +2 -0
  150. package/languages/rib.d.ts +2 -0
  151. package/languages/roboconf.d.ts +2 -0
  152. package/languages/routeros.d.ts +2 -0
  153. package/languages/rsl.d.ts +2 -0
  154. package/languages/ruby.d.ts +2 -0
  155. package/languages/ruleslanguage.d.ts +2 -0
  156. package/languages/rust.d.ts +2 -0
  157. package/languages/sas.d.ts +2 -0
  158. package/languages/scala.d.ts +2 -0
  159. package/languages/scheme.d.ts +2 -0
  160. package/languages/scilab.d.ts +2 -0
  161. package/languages/scss.d.ts +2 -0
  162. package/languages/shell.d.ts +2 -0
  163. package/languages/smali.d.ts +2 -0
  164. package/languages/smalltalk.d.ts +2 -0
  165. package/languages/sml.d.ts +2 -0
  166. package/languages/sqf.d.ts +2 -0
  167. package/languages/sql.d.ts +2 -0
  168. package/languages/stan.d.ts +2 -0
  169. package/languages/stata.d.ts +2 -0
  170. package/languages/step21.d.ts +2 -0
  171. package/languages/stylus.d.ts +2 -0
  172. package/languages/subunit.d.ts +2 -0
  173. package/languages/swift.d.ts +2 -0
  174. package/languages/taggerscript.d.ts +2 -0
  175. package/languages/tap.d.ts +2 -0
  176. package/languages/tcl.d.ts +2 -0
  177. package/languages/thrift.d.ts +2 -0
  178. package/languages/tp.d.ts +2 -0
  179. package/languages/twig.d.ts +2 -0
  180. package/languages/typescript.d.ts +2 -0
  181. package/languages/vala.d.ts +2 -0
  182. package/languages/vbnet.d.ts +2 -0
  183. package/languages/vbscript-html.d.ts +2 -0
  184. package/languages/vbscript.d.ts +2 -0
  185. package/languages/verilog.d.ts +2 -0
  186. package/languages/vhdl.d.ts +2 -0
  187. package/languages/vim.d.ts +2 -0
  188. package/languages/wasm.d.ts +2 -0
  189. package/languages/wren.d.ts +2 -0
  190. package/languages/x86asm.d.ts +2 -0
  191. package/languages/xl.d.ts +2 -0
  192. package/languages/xml.d.ts +2 -0
  193. package/languages/xquery.d.ts +2 -0
  194. package/languages/yaml.d.ts +2 -0
  195. package/languages/zephir.d.ts +2 -0
  196. package/package.json +10 -9
  197. package/styles/3024.d.ts +1 -0
  198. package/styles/a11y-dark.d.ts +1 -0
  199. package/styles/a11y-light.d.ts +1 -0
  200. package/styles/agate.d.ts +1 -0
  201. package/styles/an-old-hope.d.ts +1 -0
  202. package/styles/androidstudio.d.ts +1 -0
  203. package/styles/apathy.d.ts +1 -0
  204. package/styles/apprentice.d.ts +1 -0
  205. package/styles/arduino-light.d.ts +1 -0
  206. package/styles/arta.d.ts +1 -0
  207. package/styles/ascetic.d.ts +1 -0
  208. package/styles/ashes.d.ts +1 -0
  209. package/styles/atelier-cave-light.d.ts +1 -0
  210. package/styles/atelier-cave.d.ts +1 -0
  211. package/styles/atelier-dune-light.d.ts +1 -0
  212. package/styles/atelier-dune.d.ts +1 -0
  213. package/styles/atelier-estuary-light.d.ts +1 -0
  214. package/styles/atelier-estuary.d.ts +1 -0
  215. package/styles/atelier-forest-light.d.ts +1 -0
  216. package/styles/atelier-forest.d.ts +1 -0
  217. package/styles/atelier-heath-light.d.ts +1 -0
  218. package/styles/atelier-heath.d.ts +1 -0
  219. package/styles/atelier-lakeside-light.d.ts +1 -0
  220. package/styles/atelier-lakeside.d.ts +1 -0
  221. package/styles/atelier-plateau-light.d.ts +1 -0
  222. package/styles/atelier-plateau.d.ts +1 -0
  223. package/styles/atelier-savanna-light.d.ts +1 -0
  224. package/styles/atelier-savanna.d.ts +1 -0
  225. package/styles/atelier-seaside-light.d.ts +1 -0
  226. package/styles/atelier-seaside.d.ts +1 -0
  227. package/styles/atelier-sulphurpool-light.d.ts +1 -0
  228. package/styles/atelier-sulphurpool.d.ts +1 -0
  229. package/styles/atlas.d.ts +1 -0
  230. package/styles/atom-one-dark-reasonable.d.ts +1 -0
  231. package/styles/atom-one-dark.d.ts +1 -0
  232. package/styles/atom-one-light.d.ts +1 -0
  233. package/styles/base16-github.d.ts +1 -0
  234. package/styles/base16-ir-black.d.ts +1 -0
  235. package/styles/base16-monokai.d.ts +1 -0
  236. package/styles/base16-nord.d.ts +1 -0
  237. package/styles/bespin.d.ts +1 -0
  238. package/styles/black-metal-bathory.d.ts +1 -0
  239. package/styles/black-metal-burzum.d.ts +1 -0
  240. package/styles/black-metal-dark-funeral.d.ts +1 -0
  241. package/styles/black-metal-gorgoroth.d.ts +1 -0
  242. package/styles/black-metal-immortal.d.ts +1 -0
  243. package/styles/black-metal-khold.d.ts +1 -0
  244. package/styles/black-metal-marduk.d.ts +1 -0
  245. package/styles/black-metal-mayhem.d.ts +1 -0
  246. package/styles/black-metal-nile.d.ts +1 -0
  247. package/styles/black-metal-venom.d.ts +1 -0
  248. package/styles/black-metal.d.ts +1 -0
  249. package/styles/brewer.d.ts +1 -0
  250. package/styles/bright.d.ts +1 -0
  251. package/styles/brogrammer.d.ts +1 -0
  252. package/styles/brown-paper.d.ts +1 -0
  253. package/styles/brush-trees-dark.d.ts +1 -0
  254. package/styles/brush-trees.d.ts +1 -0
  255. package/styles/chalk.d.ts +1 -0
  256. package/styles/circus.d.ts +1 -0
  257. package/styles/classic-dark.d.ts +1 -0
  258. package/styles/classic-light.d.ts +1 -0
  259. package/styles/codepen-embed.d.ts +1 -0
  260. package/styles/codeschool.d.ts +1 -0
  261. package/styles/color-brewer.d.ts +1 -0
  262. package/styles/colors.d.ts +1 -0
  263. package/styles/cupcake.d.ts +1 -0
  264. package/styles/cupertino.d.ts +1 -0
  265. package/styles/danqing.d.ts +1 -0
  266. package/styles/darcula.d.ts +1 -0
  267. package/styles/dark-violet.d.ts +1 -0
  268. package/styles/dark.d.ts +1 -0
  269. package/styles/darkmoss.d.ts +1 -0
  270. package/styles/darktooth.d.ts +1 -0
  271. package/styles/decaf.d.ts +1 -0
  272. package/styles/default-dark.d.ts +1 -0
  273. package/styles/default-light.d.ts +1 -0
  274. package/styles/default.d.ts +1 -0
  275. package/styles/devibeans.d.ts +1 -0
  276. package/styles/dirtysea.d.ts +1 -0
  277. package/styles/docco.d.ts +1 -0
  278. package/styles/dracula.d.ts +1 -0
  279. package/styles/edge-dark.d.ts +1 -0
  280. package/styles/edge-light.d.ts +1 -0
  281. package/styles/eighties.d.ts +1 -0
  282. package/styles/embers.d.ts +1 -0
  283. package/styles/equilibrium-dark.d.ts +1 -0
  284. package/styles/equilibrium-gray-dark.d.ts +1 -0
  285. package/styles/equilibrium-gray-light.d.ts +1 -0
  286. package/styles/equilibrium-light.d.ts +1 -0
  287. package/styles/espresso.d.ts +1 -0
  288. package/styles/eva-dim.d.ts +1 -0
  289. package/styles/eva.d.ts +1 -0
  290. package/styles/far.d.ts +1 -0
  291. package/styles/felipec.d.ts +1 -0
  292. package/styles/flat.d.ts +1 -0
  293. package/styles/foundation.d.ts +1 -0
  294. package/styles/framer.d.ts +1 -0
  295. package/styles/fruit-soda.d.ts +1 -0
  296. package/styles/gigavolt.d.ts +1 -0
  297. package/styles/github-dark-dimmed.d.ts +1 -0
  298. package/styles/github-dark.d.ts +1 -0
  299. package/styles/github.d.ts +1 -0
  300. package/styles/gml.d.ts +1 -0
  301. package/styles/google-dark.d.ts +1 -0
  302. package/styles/google-light.d.ts +1 -0
  303. package/styles/googlecode.d.ts +1 -0
  304. package/styles/gradient-dark.d.ts +1 -0
  305. package/styles/gradient-light.d.ts +1 -0
  306. package/styles/grayscale-dark.d.ts +1 -0
  307. package/styles/grayscale-light.d.ts +1 -0
  308. package/styles/grayscale.d.ts +1 -0
  309. package/styles/green-screen.d.ts +1 -0
  310. package/styles/gruvbox-dark-hard.d.ts +1 -0
  311. package/styles/gruvbox-dark-medium.d.ts +1 -0
  312. package/styles/gruvbox-dark-pale.d.ts +1 -0
  313. package/styles/gruvbox-dark-soft.d.ts +1 -0
  314. package/styles/gruvbox-light-hard.d.ts +1 -0
  315. package/styles/gruvbox-light-medium.d.ts +1 -0
  316. package/styles/gruvbox-light-soft.d.ts +1 -0
  317. package/styles/hardcore.d.ts +1 -0
  318. package/styles/harmonic16-dark.d.ts +1 -0
  319. package/styles/harmonic16-light.d.ts +1 -0
  320. package/styles/heetch-dark.d.ts +1 -0
  321. package/styles/heetch-light.d.ts +1 -0
  322. package/styles/helios.d.ts +1 -0
  323. package/styles/hopscotch.d.ts +1 -0
  324. package/styles/horizon-dark.d.ts +1 -0
  325. package/styles/horizon-light.d.ts +1 -0
  326. package/styles/humanoid-dark.d.ts +1 -0
  327. package/styles/humanoid-light.d.ts +1 -0
  328. package/styles/hybrid.d.ts +1 -0
  329. package/styles/ia-dark.d.ts +1 -0
  330. package/styles/ia-light.d.ts +1 -0
  331. package/styles/icy-dark.d.ts +1 -0
  332. package/styles/idea.d.ts +1 -0
  333. package/styles/index.d.ts +248 -0
  334. package/styles/intellij-light.d.ts +1 -0
  335. package/styles/ir-black.d.ts +1 -0
  336. package/styles/isbl-editor-dark.d.ts +1 -0
  337. package/styles/isbl-editor-light.d.ts +1 -0
  338. package/styles/isotope.d.ts +1 -0
  339. package/styles/kimber.d.ts +1 -0
  340. package/styles/kimbie-dark.d.ts +1 -0
  341. package/styles/kimbie-light.d.ts +1 -0
  342. package/styles/lightfair.d.ts +1 -0
  343. package/styles/lioshi.d.ts +1 -0
  344. package/styles/london-tube.d.ts +1 -0
  345. package/styles/macintosh.d.ts +1 -0
  346. package/styles/magula.d.ts +1 -0
  347. package/styles/marrakesh.d.ts +1 -0
  348. package/styles/materia.d.ts +1 -0
  349. package/styles/material-darker.d.ts +1 -0
  350. package/styles/material-lighter.d.ts +1 -0
  351. package/styles/material-palenight.d.ts +1 -0
  352. package/styles/material-vivid.d.ts +1 -0
  353. package/styles/material.d.ts +1 -0
  354. package/styles/mellow-purple.d.ts +1 -0
  355. package/styles/mexico-light.d.ts +1 -0
  356. package/styles/mocha.d.ts +1 -0
  357. package/styles/mono-blue.d.ts +1 -0
  358. package/styles/monokai-sublime.d.ts +1 -0
  359. package/styles/monokai.d.ts +1 -0
  360. package/styles/nebula.d.ts +1 -0
  361. package/styles/night-owl.d.ts +1 -0
  362. package/styles/nnfx-dark.d.ts +1 -0
  363. package/styles/nnfx-light.d.ts +1 -0
  364. package/styles/nord.d.ts +1 -0
  365. package/styles/nova.d.ts +1 -0
  366. package/styles/obsidian.d.ts +1 -0
  367. package/styles/ocean.d.ts +1 -0
  368. package/styles/oceanicnext.d.ts +1 -0
  369. package/styles/one-light.d.ts +1 -0
  370. package/styles/onedark.d.ts +1 -0
  371. package/styles/outrun-dark.d.ts +1 -0
  372. package/styles/panda-syntax-dark.d.ts +1 -0
  373. package/styles/panda-syntax-light.d.ts +1 -0
  374. package/styles/papercolor-dark.d.ts +1 -0
  375. package/styles/papercolor-light.d.ts +1 -0
  376. package/styles/paraiso-dark.d.ts +1 -0
  377. package/styles/paraiso-light.d.ts +1 -0
  378. package/styles/paraiso.d.ts +1 -0
  379. package/styles/pasque.d.ts +1 -0
  380. package/styles/phd.d.ts +1 -0
  381. package/styles/pico.d.ts +1 -0
  382. package/styles/pojoaque.d.ts +1 -0
  383. package/styles/pop.d.ts +1 -0
  384. package/styles/porple.d.ts +1 -0
  385. package/styles/purebasic.d.ts +1 -0
  386. package/styles/qtcreator-dark.d.ts +1 -0
  387. package/styles/qtcreator-light.d.ts +1 -0
  388. package/styles/qualia.d.ts +1 -0
  389. package/styles/railscasts.d.ts +1 -0
  390. package/styles/rainbow.d.ts +1 -0
  391. package/styles/rebecca.d.ts +1 -0
  392. package/styles/ros-pine-dawn.d.ts +1 -0
  393. package/styles/ros-pine-moon.d.ts +1 -0
  394. package/styles/ros-pine.d.ts +1 -0
  395. package/styles/routeros.d.ts +1 -0
  396. package/styles/sagelight.d.ts +1 -0
  397. package/styles/sandcastle.d.ts +1 -0
  398. package/styles/school-book.d.ts +1 -0
  399. package/styles/seti-ui.d.ts +1 -0
  400. package/styles/shades-of-purple.d.ts +1 -0
  401. package/styles/shapeshifter.d.ts +1 -0
  402. package/styles/silk-dark.d.ts +1 -0
  403. package/styles/silk-light.d.ts +1 -0
  404. package/styles/snazzy.d.ts +1 -0
  405. package/styles/solar-flare-light.d.ts +1 -0
  406. package/styles/solar-flare.d.ts +1 -0
  407. package/styles/solarized-dark.d.ts +1 -0
  408. package/styles/solarized-light.d.ts +1 -0
  409. package/styles/spacemacs.d.ts +1 -0
  410. package/styles/srcery.d.ts +1 -0
  411. package/styles/stackoverflow-dark.d.ts +1 -0
  412. package/styles/stackoverflow-light.d.ts +1 -0
  413. package/styles/summercamp.d.ts +1 -0
  414. package/styles/summerfruit-dark.d.ts +1 -0
  415. package/styles/summerfruit-light.d.ts +1 -0
  416. package/styles/sunburst.d.ts +1 -0
  417. package/styles/synth-midnight-terminal-dark.d.ts +1 -0
  418. package/styles/synth-midnight-terminal-light.d.ts +1 -0
  419. package/styles/tango.d.ts +1 -0
  420. package/styles/tender.d.ts +1 -0
  421. package/styles/tokyo-night-dark.d.ts +1 -0
  422. package/styles/tokyo-night-light.d.ts +1 -0
  423. package/styles/tomorrow-night-blue.d.ts +1 -0
  424. package/styles/tomorrow-night-bright.d.ts +1 -0
  425. package/styles/tomorrow-night.d.ts +1 -0
  426. package/styles/tomorrow.d.ts +1 -0
  427. package/styles/twilight.d.ts +1 -0
  428. package/styles/unikitty-dark.d.ts +1 -0
  429. package/styles/unikitty-light.d.ts +1 -0
  430. package/styles/vs.d.ts +1 -0
  431. package/styles/vs2015.d.ts +1 -0
  432. package/styles/vulcan.d.ts +1 -0
  433. package/styles/windows-10-light.d.ts +1 -0
  434. package/styles/windows-10.d.ts +1 -0
  435. package/styles/windows-95-light.d.ts +1 -0
  436. package/styles/windows-95.d.ts +1 -0
  437. package/styles/windows-high-contrast-light.d.ts +1 -0
  438. package/styles/windows-high-contrast.d.ts +1 -0
  439. package/styles/windows-nt-light.d.ts +1 -0
  440. package/styles/windows-nt.d.ts +1 -0
  441. package/styles/woodland.d.ts +1 -0
  442. package/styles/xcode-dusk.d.ts +1 -0
  443. package/styles/xcode.d.ts +1 -0
  444. package/styles/xt256.d.ts +1 -0
  445. package/styles/zenburn.d.ts +1 -0
package/CHANGELOG.md CHANGED
@@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [6.2.1](https://github.com/metonym/svelte-highlight/releases/tag/v6.2.1) - 2022-08-07
9
+
10
+ **Fixes**
11
+
12
+ - generate types for `svelte-highlight/languages/*`, `svelte-highlight/styles/*`
13
+
14
+ **Documentation**
15
+
16
+ - add dynamic import example
17
+ - document CDN styles usage
18
+ - use TypeScript in all example set-ups
19
+ - remove Sapper example as it is deprecated
20
+ - remove Snowpack example as it is no longer maintained
21
+ - update set-up instructions for SvelteKit/Vite
22
+
8
23
  ## [6.2.0](https://github.com/metonym/svelte-highlight/releases/tag/v6.2.0) - 2022-07-13
9
24
 
10
25
  **Features**
@@ -50,7 +65,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
50
65
 
51
66
  ## [5.3.2](https://github.com/metonym/svelte-highlight/releases/tag/v5.3.2) - 2022-03-16
52
67
 
53
- - specify in docs that vite should optimize both "highlight.js" and "highlight.js/lib/core" if using SvelteKit or vite
68
+ - specify in docs that Vite should optimize both "highlight.js" and "highlight.js/lib/core" if using SvelteKit or Vite
54
69
 
55
70
  ## [5.3.1](https://github.com/metonym/svelte-highlight/releases/tag/v5.3.1) - 2022-03-16
56
71
 
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  > Syntax highlighting for Svelte using [highlight.js](https://github.com/highlightjs/highlight.js).
7
7
 
8
- Try it in the [StackBlitz](https://stackblitz.com/edit/svelte-highlight?file=src%2Froutes%2Findex.svelte).
8
+ Try it in [StackBlitz](https://stackblitz.com/edit/svelte-highlight?file=src%2Froutes%2Findex.svelte).
9
9
 
10
10
  ## [Documentation](https://svhe.onrender.com)
11
11
 
@@ -22,21 +22,28 @@ npm i -D svelte-highlight
22
22
  pnpm i -D svelte-highlight highlight.js
23
23
  ```
24
24
 
25
- Note that [pnpm](https://github.com/pnpm/pnpm) users must also install `highlight.js` as a development dependency.
25
+ Note that [pnpm](https://github.com/pnpm/pnpm) users must also install `highlight.js`.
26
26
 
27
27
  ## SvelteKit Set-up
28
28
 
29
- To use this library with [SvelteKit](https://github.com/sveltejs/kit) or [vite](https://github.com/sveltejs/vite-plugin-svelte), instruct vite to optimize `highlight.js` and `highlight.js/lib/core`:
29
+ To use this library with [SvelteKit](https://github.com/sveltejs/kit) or [Vite](https://github.com/sveltejs/vite-plugin-svelte), instruct Vite to [optimize](https://vitejs.dev/config/dep-optimization-options.html#optimizedeps-include) `highlight.js` and `highlight.js/lib/core`:
30
30
 
31
31
  ```diff
32
- # svelte.config.js
32
+ + optimizeDeps: {
33
+ + include: ["highlight.js", "highlight.js/lib/core"],
34
+ + },
35
+ ```
36
+
37
+ **vite.config.js**
38
+
39
+ ```js
40
+ import { sveltekit } from "@sveltejs/kit/vite";
41
+
42
+ /** @type {import('vite').UserConfig} */
33
43
  export default {
34
- kit: {
35
- + vite: {
36
- + optimizeDeps: {
37
- + include: ["highlight.js", "highlight.js/lib/core"],
38
- + },
39
- + },
44
+ plugins: [sveltekit()],
45
+ optimizeDeps: {
46
+ include: ["highlight.js", "highlight.js/lib/core"],
40
47
  },
41
48
  };
42
49
  ```
@@ -86,6 +93,37 @@ Depending on your set-up, importing a CSS StyleSheet in Svelte may require a CSS
86
93
  <Highlight language={typescript} {code} />
87
94
  ```
88
95
 
96
+ #### Linking from a CDN
97
+
98
+ CSS StyleSheets can also be externally linked from a Content Delivery Network (CDN) like [unpkg.com](https://unpkg.com/).
99
+
100
+ This is best suited for prototyping and not recommended for production use.
101
+
102
+ **HTML**
103
+
104
+ ```html
105
+ <!DOCTYPE html>
106
+ <html lang="en">
107
+ <head>
108
+ <link
109
+ rel="stylesheet"
110
+ href="https://unpkg.com/svelte-highlight/styles/github.css"
111
+ />
112
+ </head>
113
+ </html>
114
+ ```
115
+
116
+ **svelte:head**
117
+
118
+ ```svelte
119
+ <svelte:head>
120
+ <link
121
+ rel="stylesheet"
122
+ href="https://unpkg.com/svelte-highlight/styles/github.css"
123
+ />
124
+ </svelte:head>
125
+ ```
126
+
89
127
  ## Svelte Syntax Highlighting
90
128
 
91
129
  Use the `HighlightSvelte` component for Svelte syntax highlighting.
@@ -199,6 +237,38 @@ Refer to the highlight.js [language definition guide](https://highlightjs.readth
199
237
  <Highlight {language} code="..." />
200
238
  ```
201
239
 
240
+ ## Code-splitting
241
+
242
+ You can use the `dynamic import` syntax to code-split code.
243
+
244
+ In the example below, the `HighlightAuto` component and injected styles are dynamically loaded.
245
+
246
+ ```svelte
247
+ <script>
248
+ import { onMount } from "svelte";
249
+
250
+ let component;
251
+ let styles;
252
+
253
+ onMount(async () => {
254
+ component = (await import("svelte-highlight")).HighlightAuto;
255
+ styles = (await import("svelte-highlight/styles/github")).default;
256
+ });
257
+ </script>
258
+
259
+ <svelte:head>
260
+ {#if styles}
261
+ {@html styles}
262
+ {/if}
263
+ </svelte:head>
264
+
265
+ <svelte:component
266
+ this={component}
267
+ langtag
268
+ code={`body {\n padding: 0;\n color: red;\n}`}
269
+ />
270
+ ```
271
+
202
272
  ## API
203
273
 
204
274
  ### Props
@@ -238,8 +308,6 @@ TypeScript definitions are auto-generated by SvelteKit.
238
308
  ## Examples
239
309
 
240
310
  - [examples/rollup](examples/rollup)
241
- - [examples/rollup-typescript](examples/rollup-typescript)
242
- - [examples/snowpack](examples/snowpack)
243
311
  - [examples/sveltekit](examples/sveltekit)
244
312
  - [examples/vite](examples/vite)
245
313
  - [examples/webpack](examples/webpack)
@@ -0,0 +1,2 @@
1
+ export { _1c } from "./";
2
+ export { _1c as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { abnf } from "./";
2
+ export { abnf as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { accesslog } from "./";
2
+ export { accesslog as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { actionscript } from "./";
2
+ export { actionscript as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { ada } from "./";
2
+ export { ada as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { angelscript } from "./";
2
+ export { angelscript as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { apache } from "./";
2
+ export { apache as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { applescript } from "./";
2
+ export { applescript as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { arcade } from "./";
2
+ export { arcade as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { arduino } from "./";
2
+ export { arduino as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { armasm } from "./";
2
+ export { armasm as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { asciidoc } from "./";
2
+ export { asciidoc as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { aspectj } from "./";
2
+ export { aspectj as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { autohotkey } from "./";
2
+ export { autohotkey as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { autoit } from "./";
2
+ export { autoit as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { avrasm } from "./";
2
+ export { avrasm as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { awk } from "./";
2
+ export { awk as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { axapta } from "./";
2
+ export { axapta as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { bash } from "./";
2
+ export { bash as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { basic } from "./";
2
+ export { basic as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { bnf } from "./";
2
+ export { bnf as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { brainfuck } from "./";
2
+ export { brainfuck as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { c } from "./";
2
+ export { c as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { cal } from "./";
2
+ export { cal as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { capnproto } from "./";
2
+ export { capnproto as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { ceylon } from "./";
2
+ export { ceylon as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { clean } from "./";
2
+ export { clean as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { clojureRepl } from "./";
2
+ export { clojureRepl as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { clojure } from "./";
2
+ export { clojure as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { cmake } from "./";
2
+ export { cmake as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { coffeescript } from "./";
2
+ export { coffeescript as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { coq } from "./";
2
+ export { coq as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { cos } from "./";
2
+ export { cos as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { cpp } from "./";
2
+ export { cpp as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { crmsh } from "./";
2
+ export { crmsh as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { crystal } from "./";
2
+ export { crystal as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { csharp } from "./";
2
+ export { csharp as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { csp } from "./";
2
+ export { csp as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { css } from "./";
2
+ export { css as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { d } from "./";
2
+ export { d as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { dart } from "./";
2
+ export { dart as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { delphi } from "./";
2
+ export { delphi as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { diff } from "./";
2
+ export { diff as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { django } from "./";
2
+ export { django as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { dns } from "./";
2
+ export { dns as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { dockerfile } from "./";
2
+ export { dockerfile as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { dos } from "./";
2
+ export { dos as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { dsconfig } from "./";
2
+ export { dsconfig as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { dts } from "./";
2
+ export { dts as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { dust } from "./";
2
+ export { dust as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { ebnf } from "./";
2
+ export { ebnf as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { elixir } from "./";
2
+ export { elixir as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { elm } from "./";
2
+ export { elm as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { erb } from "./";
2
+ export { erb as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { erlangRepl } from "./";
2
+ export { erlangRepl as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { erlang } from "./";
2
+ export { erlang as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { excel } from "./";
2
+ export { excel as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { fix } from "./";
2
+ export { fix as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { flix } from "./";
2
+ export { flix as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { fortran } from "./";
2
+ export { fortran as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { fsharp } from "./";
2
+ export { fsharp as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { gams } from "./";
2
+ export { gams as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { gauss } from "./";
2
+ export { gauss as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { gcode } from "./";
2
+ export { gcode as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { gherkin } from "./";
2
+ export { gherkin as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { glsl } from "./";
2
+ export { glsl as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { gml } from "./";
2
+ export { gml as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { go } from "./";
2
+ export { go as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { golo } from "./";
2
+ export { golo as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { gradle } from "./";
2
+ export { gradle as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { graphql } from "./";
2
+ export { graphql as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { groovy } from "./";
2
+ export { groovy as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { haml } from "./";
2
+ export { haml as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { handlebars } from "./";
2
+ export { handlebars as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { haskell } from "./";
2
+ export { haskell as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { haxe } from "./";
2
+ export { haxe as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { hsp } from "./";
2
+ export { hsp as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { http } from "./";
2
+ export { http as default } from "./";
@@ -0,0 +1,2 @@
1
+ export { hy } from "./";
2
+ export { hy as default } from "./";