MCPcopy Create free account
hub / github.com/Codehagen/Badget / highlight

Function highlight

src/components/ui/code-block.tsx:44–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43 useEffect(() => {
44 async function highlight() {
45 const html = await codeToHtml(code, { lang: language, theme });
46 setHighlightedHtml(html);
47 }
48 highlight();
49 }, [code, language, theme]);
50

Callers 1

CodeBlockCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected