MCPcopy Index your code
hub / github.com/dataease/SQLBot / highlight

Function highlight

frontend/public/swagger-ui-bundle.js:19455–19475  ·  view source on GitHub ↗
(s, o, i)

Source from the content-addressed store, hash-verified

19453 }))
19454 var _ = 'hljs-'
19455 function highlight(s, o, i) {
19456 var w,
19457 x = a.configure({}),
19458 C = (i || {}).prefix
19459 if ('string' != typeof s) throw u('Expected `string` for name, got `%s`', s)
19460 if (!a.getLanguage(s)) throw u('Unknown language: `%s` is not registered', s)
19461 if ('string' != typeof o) throw u('Expected `string` for value, got `%s`', o)
19462 if (
19463 (null == C && (C = _),
19464 a.configure({ __emitter: Emitter, classPrefix: C }),
19465 (w = a.highlight(o, { language: s, ignoreIllegals: !0 })),
19466 a.configure(x || {}),
19467 w.errorRaised)
19468 )
19469 throw w.errorRaised
19470 return {
19471 relevance: w.relevance,
19472 language: w.language,
19473 value: w.emitter.rootNode.children,
19474 }
19475 }
19476 function Emitter(s) {
19477 ;((this.options = s),
19478 (this.rootNode = { children: [] }),

Callers 2

highlightElementFunction · 0.85

Calls 4

deprecatedFunction · 0.85
_highlightFunction · 0.85
uFunction · 0.70
fireFunction · 0.70

Tested by

no test coverage detected