From 6e70ae0f937f443c7fc902d8d89ef3306e8a287f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Thu, 23 Jun 2022 00:08:07 +0200 Subject: [PATCH] swagger: avoid builtin syntax-highlightning #280 --- static/js/theme.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/theme.js b/static/js/theme.js index 58567bcd02..2ce5a78c48 100644 --- a/static/js/theme.js +++ b/static/js/theme.js @@ -13,6 +13,10 @@ var touchsupport = ('ontouchstart' in window) || (navigator.maxTouchPoints > 0) var formelements = 'button, datalist, fieldset, input, label, legend, meter, optgroup, option, output, progress, select, textarea'; +// rapidoc: #280 disable broad document syntax highlightning +window.Prism = window.Prism || {}; +Prism.manual = true; + // PerfectScrollbar var psc; var psm;