preview

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Highlight

func Highlight(filename, content string, chromaTheme string, lineNumColor lipgloss.Color, csvColors []lipgloss.Color) string

Highlight returns syntax-highlighted content with line numbers. It detects the language from the filename extension. chromaTheme is the Chroma style name (e.g. "catppuccin-mocha"). lineNumColor is the color for line numbers. csvColors are the rainbow colors for CSV columns.

func HighlightCSV

func HighlightCSV(content string, lineNumColor lipgloss.Color, csvColors []lipgloss.Color) string

HighlightCSV returns CSV content with rainbow-colored columns and line numbers.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL