Spaces:
Runtime error
Runtime error
Update code_editor.py
Browse files- code_editor.py +12 -0
code_editor.py
CHANGED
@@ -4,6 +4,18 @@ def code_editor(value: str = "", issue_num: int = 0, label: str = "") -> str:
|
|
4 |
"""
|
5 |
Returns an HTML snippet for a CodeMirror-based code editor.
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
Args:
|
8 |
value (str): Initial content for the code editor.
|
9 |
issue_num (int): The issue number to identify the editor instance.
|
|
|
4 |
"""
|
5 |
Returns an HTML snippet for a CodeMirror-based code editor.
|
6 |
|
7 |
+
Args:
|
8 |
+
value (str): Initial content for the code editor.
|
9 |
+
issue_num (int): The issue number to identify the editor instance.
|
10 |
+
label (str): Optional label for the editor.
|
11 |
+
|
12 |
+
Returns:
|
13 |
+
str: HTML string that embeds a CodeMirror editor.
|
14 |
+
"""
|
15 |
+
# You can include the label in the HTML if needef code_editor(value: str = "", issue_num: int = 0, label: str = "") -> str:
|
16 |
+
"""
|
17 |
+
Returns an HTML snippet for a CodeMirror-based code editor.
|
18 |
+
|
19 |
Args:
|
20 |
value (str): Initial content for the code editor.
|
21 |
issue_num (int): The issue number to identify the editor instance.
|