Feature request: Syntax Highlighting
See original GitHub issueSwagger 2 had a nice syntax highlighting for json/xml samples.
I might be missing something, but I don’t see it in the “Known Issues” section of the README.md, is this planned or is there a way to enable it on swagger-ui 3?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:17
- Comments:5 (3 by maintainers)
 Top Results From Across the Web
Top Results From Across the Web
Syntax highlighting - Feature Requests - Notejoy
Automatically highlight syntax appropriately (across a variety of languages) when code in embedded in a Notejoy note. This is now available!
Read more >Feature Request: Add syntax highlighting · Issue #127 - GitHub
I'd be open to installing a separate plugin for XMP with code highlighting if that's what it takes. I could partially sponsor an...
Read more >Feature Request: Syntax highlighting in the editor
Please add the ability to add a code block via the rich text editor that offers syntax highlighting. See example image below.
Read more >Support diff syntax highlighting in Markdown code blocks ...
Feature Request - Support diff syntax highlighting in Markdown code blocks. Release notes. Support diff syntax highlighting in GLFM code block.
Read more >Feature request: Add syntax highlighting for Markdown
I'm wondering about this: amongst the many languages which have syntax highlighting on is missing: Markdown. :-) Any reason why this isn't implemented...
Read more > Top Related Medium Post
Top Related Medium Post
No results found
 Top Related StackOverflow Question
Top Related StackOverflow Question
No results found
 Troubleshoot Live Code
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free Top Related Reddit Thread
Top Related Reddit Thread
No results found
 Top Related Hackernoon Post
Top Related Hackernoon Post
No results found
 Top Related Tweet
Top Related Tweet
No results found
 Top Related Dev.to Post
Top Related Dev.to Post
No results found
 Top Related Hashnode Post
Top Related Hashnode Post
No results found

swagger-ui currently uses microlight and has a component named
HighlightCode. I tried to modify it withhighlight.jsand am going through several problems currently:importantand have to bedangerouslySetInnerHTML(maybe in a react way using react-lowlight )visual effect:
npm has some nice react components that handle syntax highlighting: https://www.npmjs.com/search?q=react+syntax+highlighting
a community PR that adds this functionality would be wonderful, and not difficult to implement!