@snlab/refractor-svelte

0.0.2 • Public • Published

refractor-svelte

Syntax highlighting for svelte code with refractor. Simple wrapper around prism-svelte by pngwn so it can be registered as additional syntax in refractor.

Install

npm i refractor-svelte

Usage

const refractor = require('refractor');
const svelte = require('refractor-svelte');

refractor.register(svelte)

console.log(refractor.highlight('{#each items as item, i}{item.name}{/each}', 'svelte'))

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.210latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.210
0.0.11

Package Sidebar

Install

npm i @snlab/refractor-svelte

Weekly Downloads

11

Version

0.0.2

License

MIT

Unpacked Size

6.36 kB

Total Files

4

Last publish

Collaborators

  • luucvanderzee
  • atepoorthuis