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

Function highlighted

frontend/public/swagger-ui-bundle.js:20731–20748  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20729 return this.unknownLanguage ? '' : 'hljs ' + this.detectedLanguage
20730 },
20731 highlighted() {
20732 if (!this.autoDetect && !s.getLanguage(this.language))
20733 return (
20734 console.warn(
20735 `The language "${this.language}" you specified could not be found.`
20736 ),
20737 (this.unknownLanguage = !0),
20738 escapeHTML(this.code)
20739 )
20740 let o = {}
20741 return (
20742 this.autoDetect
20743 ? ((o = s.highlightAuto(this.code)), (this.detectedLanguage = o.language))
20744 : ((o = s.highlight(this.language, this.code, this.ignoreIllegals)),
20745 (this.detectedLanguage = this.language)),
20746 o.value
20747 )
20748 },
20749 autoDetect() {
20750 return (
20751 !this.language ||

Callers

nothing calls this directly

Calls 1

escapeHTMLFunction · 0.85

Tested by

no test coverage detected