The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

How do I get "pretty print" in my Custom Request Editor Tab

Haroun | Last updated: Apr 07, 2023 11:40PM UTC

Hello, I am implementing a Custom Request Editor Tab to handle deserialized data. I am following your guide here: https://github.com/PortSwigger/burp-extensions-montoya-api-examples/tree/main/customrequesteditortab When I deserialize my data I get big chunks of HTML (or XML or JSON) code. These chunks are printed in grey without formatting in my custom editor tab. How can I get an output beautifully formatted like in the Pretty tab of burp ? Is there a api call that does this for me ? PS: If possible, I don't want to modify the actual request by adding spaces or \n to the bytes before outputting. I just want to change the display. Thank you

Hannah, PortSwigger Agent | Last updated: Apr 13, 2023 03:00PM UTC