postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.85k stars 841 forks source link

Highlight language specific code-blocks in documentation #5052

Open chrisdeso opened 6 years ago

chrisdeso commented 6 years ago

Describe the solution you'd like Highlighting language-specific code blocks in documentation would be a great addition!

Additional context When using Markdown in the descriptions it's not highlighting any code blocks but it does show highlighting when ```javascript is specified, for example.

mehdi-mousavi commented 5 years ago

Any update on this feature request?

joshuaadickerson commented 5 years ago

I am documenting the request and response bodies with Markdown code blocks. I use 3 backticks followed by "javascript" or "json" to signify the language. I would like for the documentation to highlight the syntax of these if I supply a language.

TimeTerminal commented 3 years ago

Any progress on this?

DOCHIS commented 3 years ago

i want it

priestlg commented 3 years ago

This is a feature that I would like to see as well. Since Postman does this in a Request Body, it would be nice to be nice to do the same in Postman documentation isn't in a request. I would expect it be as easy as the following:

``` json

{
      "foo":"hello",
      "bar":"world"
}

```

luckyexpert commented 3 years ago

Following this, as this would be awesome. I am trying to figure out how to document webhook requests being sent, so I can't really use the built in example system since the request is outbound, not inbound. Some nicely formatted code blocks would be great.

oscarguinane commented 3 years ago

Absolutely need this!