Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Highlighter ¶
type Highlighter struct {
// contains filtered or unexported fields
}
Highlighter provides syntax highlighting for code.
func (*Highlighter) HighlightLine ¶
func (h *Highlighter) HighlightLine(filePath, line string) string
HighlightLine applies syntax highlighting to a single line of code filePath is used to detect the language Returns the highlighted line with lipgloss styling.
func (*Highlighter) IsEnabled ¶
func (h *Highlighter) IsEnabled(filePath string) bool
IsEnabled returns whether syntax highlighting is available for a file.
Click to show internal directories.
Click to hide internal directories.