package ochre
Source file token.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20type color = string type font_style = Bold | Italic | Underline | Strikethrough type decoration_properties = { class_ : string option; style : string option; data : (string * string) list; } type styled_token = { text : string; foreground : color option; background : color option; font_style : font_style list; scopes : string list; decoration : decoration_properties option; } type line = styled_token list type highlighted_code = line list