Expand description
§Code Span
Add additional information to your code spans.
fn main() {
use code_span::CodeView;
let mut view = CodeView::blank("public static class MyClass {}");
view.mark_offset(0, 6, Some("keyword"));
view.mark_offset(7, 13, Some("keyword"));
}
Structs§
- Code
Span - Each character of these code stores the same information
- Code
View - Save the given code and store additional information on each character
- Code
View Iter - Arguments