diff --git a/playground/knot/src/Editor/Editor.tsx b/playground/knot/src/Editor/Editor.tsx index 15f4089f27..4f362fe674 100644 --- a/playground/knot/src/Editor/Editor.tsx +++ b/playground/knot/src/Editor/Editor.tsx @@ -81,6 +81,7 @@ export default function Editor({ scrollBeyondLastLine: false, contextmenu: false, }} + language={fileName.endsWith(".pyi") ? "python" : undefined} path={fileName} wrapperProps={visible ? {} : { style: { display: "none" } }} theme={theme === "light" ? "Ayu-Light" : "Ayu-Dark"}