svelte-highlight
svelte-highlight copied to clipboard
Syntax Highlighting for Svelte using highlight.js
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
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"**
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...