You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
syntax highlighting for svelte uses javascript, so if script tag uses lang=ts => no syntax highlight.
=> look into alternative & possibility of implementing a self-sufficient Code component that overcomes the above.
Resources
The svelte-kit docs uses svelte-prisma, but it render html from backend. How to do it dynamically without trading performance?
There is also highlightjs-svelte, and highlightjs is arguably a better solution giving that individual syntax-highlighting language module can be imported separately???
The text was updated successfully, but these errors were encountered:
Discussion
Currently
docs
site uses svelte-highlight, which is good but has some shortcoming for our specific use cases:html
lang, onlyxml
javascript
, so if script tag useslang=ts
=> no syntax highlight.=> look into alternative & possibility of implementing a self-sufficient
Code
component that overcomes the above.Resources
The svelte-kit docs uses svelte-prisma, but it render html from backend. How to do it dynamically without trading performance?
There is also highlightjs-svelte, and
highlightjs
is arguably a better solution giving that individual syntax-highlighting language module can be imported separately???The text was updated successfully, but these errors were encountered: