Skip to content

Syntax highlightting not working for text/xml #798

@yohny

Description

@yohny

Describe the bug

According to docs Mockoon supports XML responses for both application/xml and text/xml content-types (https://mockoon.com/docs/latest/xml-support/). However when a response Content-Type is set to text/xml the syntax highlighting of response body does not work, yet for application/xml it works. Also text/xml is not in the list of suggested Content-type headers.

To Reproduce

  1. create a responce with a header setting Content-Type to text/xml
  2. put some xml content into mock response body
  3. see that the syntax highlighting does not work
  4. change Content-Type header to application/xml
  5. observe that response body now has highlighted xml syntax

Mockoon version:
1.20.0

OS / OS version:

Winodws 10

Metadata

Metadata

Assignees

Labels

component:appIssue related to the desktop or cloud web app

Type

No type

Projects

Status

✅ Done (ready for next release)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions