Skip to content

Add additional syntax highlighters #7552

@mathis-m

Description

@mathis-m

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions