feat: add syntax highlighting and line highlighting features with customizable themes

This commit is contained in:
2026-01-07 16:50:20 +02:00
parent 866929c358
commit 05b80d1e0c
8 changed files with 410 additions and 54 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ export const createCodeElement = (x: number, y: number): CodeElement => ({
props: {
code: '// Your code here\nconsole.log("Hello, World!");',
language: 'javascript',
theme: 'dark',
theme: 'github-dark',
fontFamily: 'JetBrains Mono',
fontSize: 14,
lineHeight: 1.5,