You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, syntax highlighting for API code samples is distinct from the syntax highlighting applied by Docusaurus.
Describe the solution you'd like
Ideally, the syntax highlighting configured in docusaurus.config.js would automatically be applied to the code samples (and possibly the live request payload/param editor).
Describe alternatives you've considered
Attempting to use CSS variables to match the style, which doesn't always work well.
Additional context
One possible solution might be to adapt the Curl theme component to use the built-in Docusaurus CodeBlock component. I am not sure how we'd match styles with Monaco/VSCode editor, but it's possible we could pass the Docusaurus styles with prism-react-renderer.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
Today, syntax highlighting for API code samples is distinct from the syntax highlighting applied by Docusaurus.
Describe the solution you'd like
Ideally, the syntax highlighting configured in
docusaurus.config.js
would automatically be applied to the code samples (and possibly the live request payload/param editor).Describe alternatives you've considered
Attempting to use CSS variables to match the style, which doesn't always work well.
Additional context
One possible solution might be to adapt the
Curl
theme component to use the built-in DocusaurusCodeBlock
component. I am not sure how we'd match styles with Monaco/VSCode editor, but it's possible we could pass the Docusaurus styles withprism-react-renderer
.The text was updated successfully, but these errors were encountered: