MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / highlight_text

Function highlight_text

crates/opencode-tui/src/ui/text.rs:52–54  ·  view source on GitHub ↗
(text: &'a str, color: ratatui::style::Color)

Source from the content-addressed store, hash-verified

50}
51
52pub fn highlight_text<'a>(text: &'a str, color: ratatui::style::Color) -> Span<'a> {
53 Span::styled(text, ratatui::style::Style::default().fg(color))
54}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected