Merge pull request #56 from STRML/syntaxHighlighting

Add syntax highlighting styles & highlight threshold.
This commit is contained in:
Miroslav Bajtoš 2014-10-07 13:52:43 +02:00
commit 174aff7fbe
2 changed files with 15 additions and 1 deletions

View File

@ -21,6 +21,19 @@
bottom: -30px;
}
/* JSON syntax highlighting */
.json, .json .attribute {
color: black;
}
.json .value .string {
color: #800;
}
.json .value .number, .json .value .literal {
color: #080;
}
/*
FIXME: Separate the overrides from the rest of the styles, rather than override screen.css entirely.
*/

View File

@ -26,7 +26,8 @@ $(function() {
log('Unable to Load SwaggerUI');
log(data);
},
docExpansion: 'none'
docExpansion: 'none',
highlightSizeThreshold: 16384
});
$('#explore').click(setAccessToken);