metonym / svelte-highlight

Syntax Highlighting for Svelte using highlight.js
https://svhe.onrender.com
MIT License
253 stars 13 forks source link

Highlighting inputs textarea #264

Open 3goats opened 1 year ago

3goats commented 1 year ago

High is there anyway I can highlight a bound input textarea ? e.g.

 <textarea contenteditable="true" bind:value={operationsDoc}></textarea>

I don't need a full blown code editor here, just the ability to update a couple of values in the highlighted text before I send it to an API.

RangerDevv commented 1 year ago

I have also wanted this feature as the other alternatives just are too complex and I need to add additional packages.