Skip to content

spatialnetworkslab/refractor-svelte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Svelte language extension for refractor

Resources

Stars

Watchers

Forks

Packages

No packages published