MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getSyntaxTheme

Function getSyntaxTheme

src/native-ts/color-diff/index.ts:970–977  ·  view source on GitHub ↗
(themeName: string)

Source from the content-addressed store, hash-verified

968}
969
970export function getSyntaxTheme(themeName: string): SyntaxTheme {
971 // highlight.js has no bat theme set, so env vars can't select alternate
972 // syntect themes. We still report the env var if set, for diagnostics.
973 const envTheme =
974 process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT ?? process.env.BAT_THEME
975 void envTheme
976 return { theme: defaultSyntaxThemeName(themeName), source: null }
977}
978
979// Lazy loader to match vendor/color-diff-src/index.ts API
980let cachedModule: NativeModule | null = null

Callers

nothing calls this directly

Calls 1

defaultSyntaxThemeNameFunction · 0.85

Tested by

no test coverage detected