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

Function colorizeLine

packages/cli/src/ui/utils/CodeColorizer.tsx:112–119  ·  view source on GitHub ↗
(
  line: string,
  language: string | null,
  theme?: Theme,
)

Source from the content-addressed store, hash-verified

110}
111
112export function colorizeLine(
113 line: string,
114 language: string | null,
115 theme?: Theme,
116): React.ReactNode {
117 const activeTheme = theme || themeManager.getActiveTheme();
118 return highlightAndRenderLine(line, language, activeTheme);
119}
120
121/**
122 * Renders syntax-highlighted code for Ink applications using a selected theme.

Callers 1

renderDiffContentFunction · 0.85

Calls 2

highlightAndRenderLineFunction · 0.85
getActiveThemeMethod · 0.80

Tested by

no test coverage detected