I guess you’d want to look at the content-type header and base the highlighting of the body on that? If you have a Lezer parser for HTTP, it should be possible for a mixed-language parser to look at the tree to find that header, and assign the appropriate parser to the body. However, @codemirror/language-data doesn’t associate mime types with languages, so you’d have to define that mapping yourself.