Http Parser for v6

Hi there,
Is there any parser available for http for v6, similar to this v5 CodeMirror: HTTP mode
If not, I like to create it and need some guidance regarding the approach.
I also need Request/Response Body syntaxing according to lang, like html, js, json, graphql, xml etc.
Thanks

There’s a port of the 5.x http parser, but no Lezer-based one.

Thanks @marijn
What is easiest way to syntax highlight the request/response body based on identify lang?

There’s an example for mixed-language parsing.

Thanks for fast replies @marijn

Nice, thanks for sharing. I’ve added a link to the community packages page.

1 Like