Hacker News new | ask | show | jobs
by habosa 867 days ago
Does anyone know of a good open source syntax highlighting library for Vue SFC? That’s my biggest issue with the file format (I maintain a code review tool)
2 comments

Shiki (https://shiki.style) might be good enough for your usecase, use the latest beta versions as it's the new fresh esm rewrite.
You could look at the Vue SFC Playground's code, seems like this does what you want using monaco: https://play.vuejs.org/