MCPcopy Create free account
hub / github.com/EmNudge/watlings / highlightWatCode

Function highlightWatCode

web-build/src/highlight.ts:150–155  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

148}
149
150export function highlightWatCode(code: string): string {
151 return code
152 .split("\n")
153 .map((line) => tokenizeLine(line).map(tokenToHtml).join(""))
154 .join("\n");
155}

Callers 1

renderHoverMarkdownFunction · 0.90

Calls 1

tokenizeLineFunction · 0.85

Tested by

no test coverage detected