pub fn code_editor_preview(_window: &mut Window, cx: &mut App) -> AnyElementExpand 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).