( line: string, language: string | null, theme?: Theme, )
| 110 | } |
| 111 | |
| 112 | export 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. |
no test coverage detected