DEV Community

Discussion on: Creating a React code editor and syntax highlighter

Collapse
kendalmintcode profile image
Rob Kendal {{☕}} Author

Sorry that your expectations weren't met on this occassion Lukas. However, since you have such a powerful tool like Prism, it doesn't make sense to recreate that. The disadvantage is that Prism only highlights static bodies of code. It doesn't dynamically handle changes and you certainly can't have it work like a code editor with highlighting, which is what this article is about; a simple, quick code editor with syntax highlighting. I'm sorry if you've been misled anywhere or given the wrong impression of what we were doing here.

Collapse
lukaszahradnik profile image
Lukáš Zahradník

I absolutely agree with you, just the "from scratch" hints it wont use any library.

Thread Thread
kendalmintcode profile image
Rob Kendal {{☕}} Author

Tell you what sir, because I like your moxy, I'm going to change that header and prevent future confusion :D