Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gethly
9 hours ago
|
parent
|
context
|
favorite
| on:
Font with Built-In Syntax Highlighting (2024)
FYI, IDEs and editors too don't use "textarea". Contenteditable essentially makes the web browser work like editor does.
mg
9 hours ago
[–]
Contenteditable plus the CSS Custom Highlight API (which highlights ranges instead of elements) might indeed allow for a good solution. But I have not yet seen an editor that does that.
reply
hyperhello
7 hours ago
|
parent
[–]
I built a prototype that does work.
https://hypervariety.com/ScriptHighlighter/
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: