mod content;
mod editor;
pub mod highlighters;
mod undo_stack;
use iced_core::text::{self, highlighter};

pub use content::{Content, ContentAction};
pub use editor::{default, Action, Catalog, Edit, Motion, Status, Style, StyleFn, TextEditor};

pub fn text_editor<'a, Message, Theme, Renderer>(
    content: &'a Content<Renderer>,
) -> TextEditor<'a, highlighter::PlainText, Message, Theme, Renderer>
where
    Message: Clone,
    Theme: Catalog + 'a,
    Renderer: text::Renderer,
{
    TextEditor::new(content)
}
