MCPcopy Create free account
hub / github.com/Louisym/MiniCC / apply_code_block_background

Function apply_code_block_background

rust/crates/rusty-claude-cli/src/render.rs:626–635  ·  view source on GitHub ↗
(line: &str)

Source from the content-addressed store, hash-verified

624}
625
626fn apply_code_block_background(line: &str) -> String {
627 let trimmed = line.trim_end_matches('\n');
628 let trailing_newline = if trimmed.len() == line.len() {
629 ""
630 } else {
631 "\n"
632 };
633 let with_background = trimmed.replace("\u{1b}[0m", "\u{1b}[0;48;5;236m");
634 format!("\u{1b}[48;5;236m{with_background}\u{1b}[0m{trailing_newline}")
635}
636
637fn find_stream_safe_boundary(markdown: &str) -> Option<usize> {
638 let mut in_fence = false;

Callers 1

highlight_codeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected