pub fn add_cursor(text: &str, offset: TextSize) -> String
Inserts $0 marker into the text at offset.
$0
text
offset