highlightCode() — ui Function Reference
Architecture documentation for the highlightCode() function in highlight-code.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD d61deea5_4c72_2bc3_a073_007957e1cddf["highlightCode()"] 32f3789c_d450_95f1_cdcf_aeab6933fd4b["highlight-code.ts"] d61deea5_4c72_2bc3_a073_007957e1cddf -->|defined in| 32f3789c_d450_95f1_cdcf_aeab6933fd4b style d61deea5_4c72_2bc3_a073_007957e1cddf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/lib/highlight-code.ts lines 3–17
export async function highlightCode(code: string) {
const html = await codeToHtml(code, {
lang: "jsx",
theme: "github-dark-default",
transformers: [
{
code(node) {
node.properties["data-line-numbers"] = ""
},
},
],
})
return html
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does highlightCode() do?
highlightCode() is a function in the ui codebase, defined in deprecated/www/lib/highlight-code.ts.
Where is highlightCode() defined?
highlightCode() is defined in deprecated/www/lib/highlight-code.ts at line 3.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free