Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
habosa
· 2y ago · 0 comments
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)
Comments
[–]
taskylizard
2y ago
Shiki (
https://shiki.style
) might be good enough for your usecase, use the latest beta versions as it's the new fresh esm rewrite.
[–]
simlevesque
2y ago
You could look at the Vue SFC Playground's code, seems like this does what you want using monaco:
https://play.vuejs.org/