Spaces:
Sleeping
Sleeping
Update code_editor.py
Browse files- code_editor.py +2 -9
code_editor.py
CHANGED
|
@@ -85,15 +85,8 @@ def render_code_editor(ace_theme):
|
|
| 85 |
code1 = st_monaco(
|
| 86 |
value=st.session_state.code,
|
| 87 |
language=selected_lang.lower() if selected_lang != "C++" else "cpp",
|
| 88 |
-
theme=ace_theme,
|
| 89 |
-
height="400px"
|
| 90 |
-
options={
|
| 91 |
-
"fontSize": 14,
|
| 92 |
-
"minimap": {"enabled": False},
|
| 93 |
-
"automaticLayout": True,
|
| 94 |
-
"wordWrap": "on",
|
| 95 |
-
"ariaLabel": f"Start typing your {selected_lang} codeβ¦"
|
| 96 |
-
}
|
| 97 |
)
|
| 98 |
|
| 99 |
# ββ ACE Code Editor ββββββββββββββββββββββββββββββ
|
|
|
|
| 85 |
code1 = st_monaco(
|
| 86 |
value=st.session_state.code,
|
| 87 |
language=selected_lang.lower() if selected_lang != "C++" else "cpp",
|
| 88 |
+
theme=ace_theme, # "vs", "vs-dark", etc.
|
| 89 |
+
height="400px" # Must be string with px
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
)
|
| 91 |
|
| 92 |
# ββ ACE Code Editor ββββββββββββββββββββββββββββββ
|