highlight

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Transform

func Transform(input string, format Format) (string, error)

Transform function to highlight an input string. Can return error

Types

type Format

type Format string

Format Type for the lexer to enable highlighting

const (
	// YAML Format needed for the lexer to enable highlighting
	YAML Format = "yaml"
	// XML Format needed for the lexer to enable highlighting
	XML Format = "xml"
)

Jump to

Keyboard shortcuts

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