Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional syntax highlighters #7552

Open
mathis-m opened this issue Oct 11, 2021 · 0 comments
Open

Add additional syntax highlighters #7552

mathis-m opened this issue Oct 11, 2021 · 0 comments

Comments

@mathis-m
Copy link
Contributor

Using this reference to implement different languages on the snippets #7181 (comment)

I can get other languages like Python... However, I don't get any syntax highlighting. Is there a way to allow this? I'm putting together a PR to include options for FastAPI

Screenshot 2021-10-11 at 14 49 54

This is where all of the languages are added https://github.com/swagger-api/swagger-ui/blob/cc408812fc927e265da158bf68239530740ab4cc/src/core/syntax-highlighting.js

Originally posted by @ghandic in #7551

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant