Wondering what’s next for npm?Check out our public roadmap! »

@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'))

Install

npm i @snlab/refractor-svelte

DownloadsWeekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

6.36 kB

Total Files

4

Last publish

Collaborators

  • avatar
  • avatar