|
|
@ -18,7 +18,7 @@ Without changing the settings, syntax highlighting is enabled by default: |
|
|
|
|
|
|
|
|
But you can disable it by setting `syntaxHighlight` to `False`: |
|
|
But you can disable it by setting `syntaxHighlight` to `False`: |
|
|
|
|
|
|
|
|
{* ../../docs_src/configure_swagger_ui/tutorial001.py hl[3] *} |
|
|
{* ../../docs_src/configure_swagger_ui/tutorial001_py39.py hl[3] *} |
|
|
|
|
|
|
|
|
...and then Swagger UI won't show the syntax highlighting anymore: |
|
|
...and then Swagger UI won't show the syntax highlighting anymore: |
|
|
|
|
|
|
|
|
@ -28,7 +28,7 @@ But you can disable it by setting `syntaxHighlight` to `False`: |
|
|
|
|
|
|
|
|
The same way you could set the syntax highlighting theme with the key `"syntaxHighlight.theme"` (notice that it has a dot in the middle): |
|
|
The same way you could set the syntax highlighting theme with the key `"syntaxHighlight.theme"` (notice that it has a dot in the middle): |
|
|
|
|
|
|
|
|
{* ../../docs_src/configure_swagger_ui/tutorial002.py hl[3] *} |
|
|
{* ../../docs_src/configure_swagger_ui/tutorial002_py39.py hl[3] *} |
|
|
|
|
|
|
|
|
That configuration would change the syntax highlighting color theme: |
|
|
That configuration would change the syntax highlighting color theme: |
|
|
|
|
|
|
|
|
@ -46,7 +46,7 @@ You can override any of them by setting a different value in the argument `swagg |
|
|
|
|
|
|
|
|
For example, to disable `deepLinking` you could pass these settings to `swagger_ui_parameters`: |
|
|
For example, to disable `deepLinking` you could pass these settings to `swagger_ui_parameters`: |
|
|
|
|
|
|
|
|
{* ../../docs_src/configure_swagger_ui/tutorial003.py hl[3] *} |
|
|
{* ../../docs_src/configure_swagger_ui/tutorial003_py39.py hl[3] *} |
|
|
|
|
|
|
|
|
## Other Swagger UI Parameters { #other-swagger-ui-parameters } |
|
|
## Other Swagger UI Parameters { #other-swagger-ui-parameters } |
|
|
|
|
|
|
|
|
|