Open metonym opened 2 years ago
Currently, code styles are applied globally. It could be useful if styles code be scoped, which would allow the ability use different styles in the same page.
The docs site actually scopes styles for the purpose of showcasing individual styles on one page: https://github.com/metonym/svelte-highlight/blob/97c8e5c0c28bf5f458779e6196a2ec94e5dc7f52/demo/lib/ScopedStyle.svelte#L35
This would be a great feature. Any news on the progress?
I'll put this in my queue – seems like a table stakes feature TBH.
Currently, code styles are applied globally. It could be useful if styles code be scoped, which would allow the ability use different styles in the same page.
The docs site actually scopes styles for the purpose of showcasing individual styles on one page: https://github.com/metonym/svelte-highlight/blob/97c8e5c0c28bf5f458779e6196a2ec94e5dc7f52/demo/lib/ScopedStyle.svelte#L35