api-management-developer-portal icon indicating copy to clipboard operation
api-management-developer-portal copied to clipboard

Feature request: Code snippit box

Open dylan-rtfm opened this issue 3 years ago • 4 comments

We are publishing sample code within a documentation narrative (cookbooks) but the only decent way to show code within the text is to use a text block and monospace font. Not great.

On the API pages, in the Try It section, there is highlighted code, including a Copy button. I would like this on the 'documentation' pages too, as a widget. image

Are there any plans to make this (or something similar) as a widget? The widget set-up could allow the language selection, same languages as in the Try It section.

Thanks.

dylan-rtfm avatar Nov 15 '21 15:11 dylan-rtfm

@dylan-rtfm, thank you for opening this issue. We will triage it within the next few business days.

msftbot[bot] avatar Nov 15 '21 15:11 msftbot[bot]

Hi @dylan-rtfm, makes sense, we'll add it.

azaslonov avatar Nov 18 '21 17:11 azaslonov

@dylan-rtfm, thank you for requesting this feature.

msftbot[bot] avatar Nov 18 '21 17:11 msftbot[bot]

Loosely related to #1207.

mikebudzynski avatar Nov 22 '21 20:11 mikebudzynski