highlighter

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultStyle = "monokai"
	// DEFAULT_FORMATTER = "terminal16m"
	MaxReadSize = 10_000_000
)

Variables

This section is empty.

Functions

func Go

func Help

func Help() string

func Run added in v0.9.20

func Run(input string, o *Options) string

Types

type Chroma

type Chroma struct {
	// contains filtered or unexported fields
}

type Options

type Options struct {
	FileName      string
	StyleHint     string
	LexerHint     string
	FormatterHint string
}

func NewOptions added in v0.9.20

func NewOptions(filename, style, formatter, lexer string) *Options

Jump to

Keyboard shortcuts

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