pub const Highlight = enum { none, normal, // Syntax highlighting comment, comment_ml, keyword1, keyword2, number, string, // Other "faces" line_no, match, overlong_line, pub fn asString(hl: Highlight) []const u8 { return switch (hl) { .none => "\x1b[m", .normal => "\x1b[;39m", .comment => "\x1b[;2;3;36m", .comment_ml => "\x1b[;2;3;36m", .keyword1 => "\x1b[;1;33m", .keyword2 => "\x1b[;32m", .number => "\x1b[;31m", .string => "\x1b[;35m", .line_no => "\x1b[;90m", .match => "\x1b[;4;34m", .overlong_line => "\x1b[;7;91m", }; } };