Thanks for the answers !
hendrik OK, I see. So it's not about having a Typst language server. Or maybe the language servers are a component of CodeMirror ? While looking into Typst editors, I came across this atulyak123/Typst-WebAssembly making use of CodeMirror.
jgsw_ Great tip. I never had a look into Quarto. I'll keep it in mind for forthcoming projects. Especially when more data processing/coding is involved.
In the end, I use the Zed editor for writing in Typst. With the task settings I set up a switch between a "code mode" and a "write mode". Very much DIY :
[
{
"label": "Switch to write mode",
"command": "jq '.theme = \"One Light\" | .buffer_font_family = \"iA Writer Quattro V\" | .buffer_font_size = 20' ~/.config/zed/settings.json > /tmp/tmp.json && mv /tmp/tmp.json ~/.config/zed/settings.json",
"use_new_terminal": false,
"reveal": "never",
"shell": "system",
"hide": "always"
},
{
"label": "Switch to code mode",
"command": "jq '.theme = \"One Dark\" | .buffer_font_family = \"Zed Plex Mono\" | .buffer_font_size = 17' ~/.config/zed/settings.json > /tmp/tmp.json && mv /tmp/tmp.json ~/.config/zed/settings.json",
"use_new_terminal": false,
"reveal": "never",
"shell": "system",
"hide": "always"
}
]