mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 07:18:10 -05:00
Syntax highlighting changes based on what file you are editing (#1176)
Co-authored-by: Robert Brennan <accounts@rbren.io>
This commit is contained in:
@@ -61,7 +61,11 @@ function CodeEditor(): JSX.Element {
|
||||
<div className="flex grow">
|
||||
<Editor
|
||||
height="100%"
|
||||
defaultLanguage="python"
|
||||
path={
|
||||
selectedFileName === ""
|
||||
? "welcome.txt"
|
||||
: selectedFileName.toLocaleLowerCase()
|
||||
}
|
||||
defaultValue="# Welcome to OpenDevin!"
|
||||
value={code}
|
||||
onMount={handleEditorDidMount}
|
||||
|
||||
Reference in New Issue
Block a user