logoalt Hacker News

mgyesterday at 5:05 PM2 repliesview on HN

This is interesting.

I have yet to see a good web based text editor with syntax highlighting. They all mess with the native search functionality of the browser. Because they can't just use a textarea for the edit area. With this approach, it would be possible.

I wonder how usable a Python version of this would be?


Replies

onion2kyesterday at 5:25 PM

I have yet to see a good web based text editor with syntax highlighting.

I slightly expect you to pull a "no true Scotsman" here and suggest it's actually no good because it doesn't really support mobile browsers very well, but Microsoft's Monaco editor that's driven from VS Code is quite good. https://microsoft.github.io/monaco-editor/

show 1 reply
gethlyyesterday at 5:19 PM

FYI, IDEs and editors too don't use "textarea". Contenteditable essentially makes the web browser work like editor does.

show 1 reply