A simple code editor based on the CodeMirror for the NiceGUI framework. It provides a user-friendly interface for writing and editing code with features like line numbers, smart indentation, and event handling for changes, focus, and blur. Value binding is also supported.
See main.py
for a usage example.
from codemirror import CodeMirror
code_editor = CodeMirror()