From 0fed04b8b4c16c3ce3919064d9dcc7e0d58577a4 Mon Sep 17 00:00:00 2001 From: anshika1179 Date: Wed, 5 Aug 2026 15:25:38 +0530 Subject: [PATCH] feat(ui): use monaco-editor for syntax highlighting in LiveCodeRunner (fixes #1914) --- src/components/studyroom/LiveCodeRunner.tsx | 23 ++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/components/studyroom/LiveCodeRunner.tsx b/src/components/studyroom/LiveCodeRunner.tsx index bf10de9c..273d4ac9 100644 --- a/src/components/studyroom/LiveCodeRunner.tsx +++ b/src/components/studyroom/LiveCodeRunner.tsx @@ -3,6 +3,7 @@ import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger } from import { Play, Code, Share, Loader2 } from "lucide-react"; import { toast } from "sonner"; import { env } from "@/env"; +import { Editor } from "@monaco-editor/react"; // PISTON_API_URL delegates code execution to a secure, containerized third-party execution engine (Piston). // This mitigates Issue #1846 by completely removing the execution context from our backend server, @@ -150,13 +151,21 @@ export function LiveCodeRunner({ onShare }: LiveCodeRunnerProps) {
-