Skip to main content

sveltui_code/
lib.rs

1pub mod binding;
2pub mod buffer;
3pub mod code_editor;
4pub mod code_preview;
5pub mod highlight;
6
7pub use binding::CodeBinding;
8pub use buffer::{
9    CodeBuffer, get_code_buffer, set_code_buffer, with_code_buffer, with_code_buffer_mut,
10};
11pub use code_editor::{CodeEditor, CodeEditorProps};
12pub use code_preview::{CodePreview, CodePreviewProps};
13pub use highlight::{
14    DEFAULT_THEME, HighlightedSpan, clip_spans, find_syntax, find_theme, highlight_text,
15    syntax_set, syntect_color_to_crossterm, theme_set,
16};
17pub use sveltui::terminal::CursorStyle;
18
19pub mod prelude {
20    pub use crate::binding::CodeBinding;
21    pub use crate::buffer::{
22        CodeBuffer, get_code_buffer, set_code_buffer, with_code_buffer, with_code_buffer_mut,
23    };
24    pub use crate::code_editor::{CodeEditor, CodeEditorProps};
25    pub use crate::code_preview::{CodePreview, CodePreviewProps};
26    pub use crate::highlight::HighlightedSpan;
27    pub use sveltui::terminal::CursorStyle;
28}