MCPcopy Create free account
hub / github.com/anus-dev/ANUS / getHighlightedLine

Function getHighlightedLine

packages/cli/src/ui/utils/CodeColorizer.tsx:99–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97): React.ReactNode {
98 try {
99 const getHighlightedLine = () =>
100 !language || !lowlight.registered(language)
101 ? lowlight.highlightAuto(line)
102 : lowlight.highlight(language, line);
103
104 const renderedNode = renderHastNode(getHighlightedLine(), theme, undefined);
105

Callers 1

highlightAndRenderLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected