File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -307,30 +307,6 @@ function syncSharedInputValues(changedInput) {
307307 } ) ;
308308}
309309
310- // function syntaxHighlightJson(json) {
311- // if (typeof json !== 'string') {
312- // json = JSON.stringify(json, null, 2);
313- // }
314- //
315- // json = json.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
316- //
317- // return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) {
318- // let cls = 'json-number';
319- // if (/^"/.test(match)) {
320- // if (/:$/.test(match)) {
321- // cls = 'json-key';
322- // } else {
323- // cls = 'json-string';
324- // }
325- // } else if (/true|false/.test(match)) {
326- // cls = 'json-boolean';
327- // } else if (/null/.test(match)) {
328- // cls = 'json-null';
329- // }
330- // return '<span class="' + cls + '">' + match + '</span>';
331- // });
332- // }
333-
334310function initializeExecuteHandlers ( config ) {
335311 if ( ! document . body . hasAttribute ( 'data-execute-handlers-initialized' ) ) {
336312 document . body . setAttribute ( 'data-execute-handlers-initialized' , 'true' ) ;
You can’t perform that action at this time.
0 commit comments