syntaxhighlight

package
v0.82.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Highlight

func Highlight(code string, options HighlightOptions) string

func RenderHighlightedHTML

func RenderHighlightedHTML(input string, theme HighlightTheme) string

func SupportsLanguage

func SupportsLanguage(language string) bool

Types

type HighlightOptions

type HighlightOptions struct {
	Language       string
	IgnoreIllegals bool
	Theme          HighlightTheme
}

type HighlightTheme

type HighlightTheme map[string]func(string) string

Jump to

Keyboard shortcuts

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