Skip to main content
CodeEditor(placeholder="", max_len=16000, rows=4, language="python")

Example

from mirmod.controls import CodeEditor

@wob.receiver("value", "code", control=CodeEditor(placeholder="Enter your code here...", rows=10, language="python"))
def receive_code(self, code):
	self.code = code

Parameters

NameTypeDescription
placeholderstringPlaceholder text shown when the editor is empty. Default empty.
max_lenintMaximum character length allowed. Default 16000.
rowsintNumber of visible rows in the editor. Default 4.
languagestringSyntax highlighting language. Default “python”.