Documentation
¶
Overview ¶
Package highlight provides Chroma-based syntax highlighting for the editor It tokenizes document text and maps Chroma token types to terminal styles
Index ¶
Constants ¶
View Source
const ( LogError = "ERR" LogWarning = "WAR" LogInfo = "INF" LogCommand = "CMD" LogTerminal = "TRM" LogSeparator = " " + tui.BorderV + " " )
LogError, LogWarning, LogInfo, LogCommand and LogTerminal are the tags the message log writes at the start of each line, naming the severity or the source, LogSeparator the rule drawn after them
Variables ¶
This section is empty.
Functions ¶
func DefaultStyle ¶
DefaultStyle returns the fallback ANSI style for a scope name when no theme is active or the theme does not define the scope
func NormalizeNewlines ¶
NormalizeNewlines replaces \r\n with \n for consistent tokenization
Types ¶
Click to show internal directories.
Click to hide internal directories.