We're currently using the shiki JS Regex engine, but they also provide a wasm regex engine to parse code into the AST and apply syntax highlighting.
However, I couldn't get the default wasm engine to work in the extension context out of the box. Also there might be an issue publishing a wasm blob to the chrome web store (src).
We're currently using the shiki JS Regex engine, but they also provide a wasm regex engine to parse code into the AST and apply syntax highlighting.
However, I couldn't get the default wasm engine to work in the extension context out of the box. Also there might be an issue publishing a wasm blob to the chrome web store (src).