easy-code-formatter-styles icon indicating copy to clipboard operation
easy-code-formatter-styles copied to clipboard

Support for HTTP Request/Response

Open aress31 opened this issue 5 years ago • 2 comments

Would like to know whether it could be possible to add support for HTTP Request and Response formatting, so far, it looks like that:

image

As a cyber security professional, in my reports, I very often include HTTP request and response, although, this extension making the snippets look nicer you can see that it is struggling with HTTP - parsing /* as the start of a comment block.

Could it be possible to add an option to specify the type of languages, or code being processed? Maybe in a markdown fashion?

aress31 avatar Jan 07 '21 16:01 aress31

I think I was relying on the community a bit too much to add the language-specific styles :) That said, this is a different problem, the keywords etc... would be different, so it requires a bit of investigation. Do you have a sample of what would you rather it look like?

armhil avatar Jan 07 '21 21:01 armhil

More something like that (using GitHub markdown http):

POST /test HTTP/1.1
Host: foo.example
Content-Type: application/x-www-form-urlencoded
Content-Length: 27

field1=value1&field2=value2

aress31 avatar Jan 07 '21 21:01 aress31