frequently asked
Short answers to the things that come up most often. If something here is wrong or missing, the source for this page lives in docs/faq.md.
# getting started § 01
Probably not, but I built it anyway.
Jokes aside, I needed a new syntax highlighter maybe you feel the same.
I found that I was caught between two equally unsuitable options, both excellent in their way, but I wasn't comfortable with the trade-offs of either.
Prism is small and fast with great language support but the lack of customisation options, outdated package format, and browser-only plugins made it difficult to work with. The long awaited rewrite will address some of these issues but I lost confidence that it will come soon or solve enough of the issues I faced.
Shiki on the other hand offers very high quality highlighting and great customisation options but the size and performance made it unsuitable some usecases. The Shiki team have done great work optimising the library in recent years but there are a few hard limitations that make significant improvements challenging. The DX of Shiki has suffered due to this in my opinion as much of your setup is dedicated to working around these issues.
Twinkleplop is my take on a modern syntax highlighter that tries to capture the benefits of both. It is part experiement, and part 'thing that I needed'.
I wrote about this more extensively here.