Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
You should check out my example I posted above, here https://github.com/etrombly/syntect_test . I think I'm getting pretty good performance from it.
Very recently, I stumbled onto a library called syntect, which is a syntax highlighting library, and I got interested in the project because it promises to be really fast.
I use a lot of different syntax highlighters to highlight code snippets from markdown contents, including shiki, prismjs, and highlightjs. But they all have different problems. For one, prismjs and highlightjs aren't as good as shiki at highlighting tokens, and sometimes result in incomplete/inconsistent highlightings. On the other hand, shiki, being ported part of from vscode's syntax highlighter, outputs IDE level super accurate syntax highlighting and has a great number of themes to choose. But shiki is super slow compared to prismjs and highlightjs.
I use a lot of different syntax highlighters to highlight code snippets from markdown contents, including shiki, prismjs, and highlightjs. But they all have different problems. For one, prismjs and highlightjs aren't as good as shiki at highlighting tokens, and sometimes result in incomplete/inconsistent highlightings. On the other hand, shiki, being ported part of from vscode's syntax highlighter, outputs IDE level super accurate syntax highlighting and has a great number of themes to choose. But shiki is super slow compared to prismjs and highlightjs.
I use a lot of different syntax highlighters to highlight code snippets from markdown contents, including shiki, prismjs, and highlightjs. But they all have different problems. For one, prismjs and highlightjs aren't as good as shiki at highlighting tokens, and sometimes result in incomplete/inconsistent highlightings. On the other hand, shiki, being ported part of from vscode's syntax highlighter, outputs IDE level super accurate syntax highlighting and has a great number of themes to choose. But shiki is super slow compared to prismjs and highlightjs.
I ended up using CodeMirror 6 for my syntax highlighting needs.