MCPcopy Create free account
hub / github.com/fontsource/fontsource / CodeHighlight

Function CodeHighlight

website/app/components/code/Code.tsx:105–119  ·  view source on GitHub ↗
({ code, language }: CodeHighlightProps)

Source from the content-addressed store, hash-verified

103}
104
105export const CodeHighlight = ({ code, language }: CodeHighlightProps) => (
106 <CodeHighlightAdapterProvider adapter={codeHighlightAdapter}>
107 <MantineCodeHighlight
108 className={classes.highlight}
109 classNames={{
110 code: classes['code-inner'],
111 pre: classes.code,
112 scrollarea: classes.scrollarea,
113 }}
114 code={code}
115 language={highlightLanguage(language)}
116 withCopyButton={false}
117 />
118 </CodeHighlightAdapterProvider>
119);
120
121type CodePreProps = ComponentProps<'pre'> & {
122 icon?: string;

Callers

nothing calls this directly

Calls 1

highlightLanguageFunction · 0.90

Tested by

no test coverage detected