codehighlight

package
v0.0.0-...-de9fdfd Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Highlight

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

func NewHighlight

func NewHighlight(code io.Reader) (*Highlight, error)

func (*Highlight) HighlightConsole

func (h *Highlight) HighlightConsole() (string, error)

func (*Highlight) HighlightHTML

func (h *Highlight) HighlightHTML() (string, error)

type Mode

type Mode int
const (
	ModeConsole Mode = iota
	ModeHTML
)

Jump to

Keyboard shortcuts

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