Skip to main content

code_editor_preview

Function code_editor_preview 

Source
pub fn code_editor_preview(_window: &mut Window, cx: &mut App) -> AnyElement
Expand description

Standalone gallery preview for CodeEditor (not registered in the Component catalog since it is a stateful Entity, matching SearchInput’s existing convention in this crate). Shows both modes: an editable plain-text buffer, and a read-only buffer with real tree-sitter syntax highlighting (see CodeEditor::language).