xchroma

package
v0.3.36 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Formatter

func Formatter(bgColor color.Color, processValue func(string) string) chroma.Formatter

Formatter is func that returns a custom formatter for Chroma that uses Lip Gloss for foreground styling, while keeping a forced background color.

func MatchLexer

func MatchLexer(fileName string) chroma.Lexer

MatchLexer returns the chroma lexer for the given filename, coalesced and memoized. It returns nil when no lexer matches (callers can fall back to content analysis). The returned lexer is safe to reuse across calls.

Types

This section is empty.

Jump to

Keyboard shortcuts

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