Elffuss BraidHub

kikocis/continue public

main · 621 BRawPermalink
1import React from "react";
2
3export interface SyntaxHighlighterTheme {
4 keyword: string;
5 string: string;
6 comment: string;
7 number: string;
8 operator: string;
9}
10
11export const defaultTheme: SyntaxHighlighterTheme = {
12 keyword: "blue",
13 string: "green",
14 comment: "gray",
15 number: "yellow",
16 operator: "cyan",
17};
18
19export function highlightCode(code: string): React.ReactNode[] {
20 // Mock implementation that just returns the code as plain text
21 return [React.createElement("ink-text", { key: "mock-code" }, code)];
22}
23
24export function detectLanguage(): string {
25 // Mock implementation
26 return "javascript";
27}