- Add 'z read' command with chroma syntax highlighting and line numbers - Add 'z md' command for rendering markdown to terminal - Add Italic, Dim, Underline color constants - Move ReadFileContent to shared pkg/formatter/utils.go - Custom markdown parser with colored headings, lists, checkboxes - Code blocks in markdown use chroma syntax highlighting
16 lines
287 B
Go
16 lines
287 B
Go
package colors
|
|
|
|
const (
|
|
Reset = "\033[0m"
|
|
Red = "\033[31m"
|
|
Green = "\033[32m"
|
|
Yellow = "\033[33m"
|
|
Blue = "\033[34m"
|
|
Purple = "\033[35m"
|
|
Cyan = "\033[36m"
|
|
Gray = "\033[90m"
|
|
Bold = "\033[1m"
|
|
Italic = "\033[3m"
|
|
Dim = "\033[2m"
|
|
Underline = "\033[4m"
|
|
)
|