svelte-highlight icon indicating copy to clipboard operation
svelte-highlight copied to clipboard

Syntax Highlighting for Svelte using highlight.js

Results 19 svelte-highlight issues
Sort by recently updated
recently updated
newest added

already talked about this in issue #274 I can't make it work even if I define a global class because the overflow-x is on the div itself, why make it...

The "langtag" prop is not showing the language on top right corner when using "LineNumbers". Here is a reproduction: https://svelte.dev/repl/1cdc3788cc744c62b58f3f56d8ebea42?version=3.59.1

bug

High is there anyway I can highlight a bound input textarea ? e.g. ``` ``` I don't need a full blown code editor here, just the ability to update a...

It would be awesome to implement the blur feature found here: https://torchlight.dev/ **"Focus Your Reader's Attention"**

enhancement

Please add a utility to add a copy button to the top right corner of highlighted syntax

# Added in a copy btn to copy the code https://github.com/user-attachments/assets/76b6eda9-901c-4a45-8282-78ff0309f025

Alternative to #349 that uses component composition. ```svelte import { Highlight, ScopedStyle } from "svelte-highlight"; import typescript from "svelte-highlight/languages/typescript"; import atomOneDark from "svelte-highlight/styles/atom-one-dark.scoped"; import github from "svelte-highlight/styles/github.scoped"; import blackMetalDarkFuneral from...

Closes #233 **TODO** - [ ] Update docs (README) - [ ] Update demo docs - [ ] Update demo option ```svelte import { Highlight } from "svelte-highlight"; import typescript...