Expand description
Syntax-highlighted code editor component.
Provides a textarea with real-time syntax highlighting overlay. Uses a
transparent textarea layered over a highlighted pre element for editing.
§Components
CodeEditor- Editable code editor with syntax highlightingCodeView- Read-only syntax highlighted display
§Languages
- Logos: Imperative
.logosfiles (zones, parallel, etc.) - Vernacular: Math/theorem mode (Definition, Check, Eval)
- Rust: Generated Rust output
§Props (CodeEditor)
value- Current code contenton_change- Callback when content changeslanguage- Syntax highlighting modeplaceholder- Optional placeholder textreadonly- Whether editing is disabled
Re-exports§
pub use CodeEditor_completions::Component::CodeEditor;pub use CodeView_completions::Component::CodeView;
Structs§
- Code
Editor Props - Properties for the
CodeEditorcomponent. - Code
View Props - Properties for the
CodeViewcomponent.
Enums§
- Language
- Language mode for syntax highlighting.
Functions§
- Code
Editor - Syntax-highlighted code editor component.
- Code
View - Read-only syntax-highlighted code view.